Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Field ¶
type Field struct { Key string Type FieldType String string Int int Duration time.Duration Error error }
Field type
type Logger ¶
type Logger interface { Trace(msg string, fields ...Field) Debug(msg string, fields ...Field) Info(msg string, fields ...Field) Warn(msg string, fields ...Field) Error(msg string, fields ...Field) Sub(fields ...Field) Logger }
Logger interface
var DefaultLogger Logger = NewNopLogger()
DefaultLogger is set to a Nop logger
You may reassign this if you wish to avoid having to pass in With*Logger(yourLogger) options into many of the constructors to set a custom logger
Click to show internal directories.
Click to hide internal directories.