Documentation ¶
Index ¶
- type ExecCloser
- type FilterHandle
- type MongoHook
- func (this *MongoHook) Fire(entry *zapcore.Entry, m map[string]interface{}) error
- func (this *MongoHook) Flush()
- func (this *MongoHook) Level() zapcore.Level
- func (this *MongoHook) WriteConsole(ent zapcore.Entry, p []byte) error
- func (this *MongoHook) WriteJson(ent zapcore.Entry, p []byte) error
- func (this *MongoHook) WriteObject(ent zapcore.Entry, m map[string]interface{}) error
- type MongoHookOption
- func SetExec(exec ExecCloser) MongoHookOption
- func SetExtra(extra map[string]interface{}) MongoHookOption
- func SetFilter(filter FilterHandle) MongoHookOption
- func SetLevels(level zapcore.Level) MongoHookOption
- func SetMaxQueues(maxQueues int) MongoHookOption
- func SetMaxWorkers(maxWorkers int) MongoHookOption
- func SetOut(out io.Writer) MongoHookOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecCloser ¶
type FilterHandle ¶
type MongoHook ¶
type MongoHook struct {
// contains filtered or unexported fields
}
func NewMongoHook ¶
func NewMongoHook(opt ...MongoHookOption) *MongoHook
func (*MongoHook) WriteConsole ¶
type MongoHookOption ¶
type MongoHookOption func(*mongoHookOpt)
func SetExec ¶
func SetExec(exec ExecCloser) MongoHookOption
Click to show internal directories.
Click to hide internal directories.