Documentation ¶
Index ¶
- func Err(logger log.Logger, err error) error
- func InfoLogger(logger log.Logger) log.Logger
- func InfoMsg(logger log.Logger, message string, keyvals ...interface{})
- func Msg(logger log.Logger, message string, keyvals ...interface{}) error
- func TraceLogger(logger log.Logger) log.Logger
- func TraceMsg(logger log.Logger, message string, keyvals ...interface{})
- func TraceValuer() log.Valuer
- func WithMetadata(logger log.Logger) log.Logger
- func WithScope(logger log.Logger, scopeName string) log.Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Err ¶
Log an error with consistent error key and metadata and return the error passed in or an logging error enclosing the original error if there is a logging error
func TraceValuer ¶
func WithScope ¶
Establish or extend the scope of this logger by appending scopeName to the Scope vector. Like With the logging scope is append only but can be used to provide parenthetical scopes by hanging on to the parent scope and using once the scope has been exited. The scope mechanism does is agnostic to the type of scope so can be used to identify certain segments of the call stack, a lexical scope, or any other nested scope.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.