package operatelog type Option func(bp *OperateLog) func SetBatch() Option { return func(ol *OperateLog) { ol.batch = true } }