Documentation
¶
Index ¶
- func AddField(key string, value interface{})
- func Debug(msg string)
- func Error(err error)
- func Event(e string, f map[string]interface{})
- func Fatal(err error)
- func Info(msg string)
- func Init(id []byte)
- func TimeTrack(start time.Time, e string, info map[string]interface{})
- func Warn(msg string)
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddField ¶
func AddField(key string, value interface{})
AddField is a convenient alias for Root().AddField
Types ¶
type Logger ¶
type Logger interface { // New returns a new Logger that has this logger's context plus the given context New(key string, value interface{}) Logger AddField(key string, value interface{}) Debug(msg string) Info(msg string) Warn(msg string) Error(err error) Fatal(err error) TimeTrack(time.Time, string, map[string]interface{}) Event(e string, f map[string]interface{}) }
A Logger writes key/value pairs to a Handler
Click to show internal directories.
Click to hide internal directories.