Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fields ¶
type Fields map[string]interface{}
Fields are used to add additional context to your log message
func MergeFields ¶
MergeFields creates a new Fields set by merging a and b.
type Logger ¶
type Logger interface { Debug(message string, fields Fields) Info(message string, fields Fields) Warn(message string, fields Fields) Error(message string, fields Fields) Critical(message string, fields Fields) IsDebug() bool IsInfo() bool IsWarn() bool IsError() bool IsCritical() bool Named(name string) Logger }
Logger is the interface to logging It is simlar to standard logger but supports fields. An implementation of logger can be used by flight recorder for the logging.
var Null Logger = nullLogger(struct{}{})
Null is the null implementation of logger.
Click to show internal directories.
Click to hide internal directories.