Documentation ¶
Index ¶
- func Colors(keyvals ...interface{}) term.FgBgColor
- func InfoMsg(logger types.InfoTraceLogger, message string, keyvals ...interface{})
- func Msg(logger kitlog.Logger, message string, keyvals ...interface{}) error
- func TraceMsg(logger types.InfoTraceLogger, message string, keyvals ...interface{})
- func TraceValuer() kitlog.Valuer
- func WithMetadata(infoTraceLogger types.InfoTraceLogger) types.InfoTraceLogger
- func WithScope(logger types.InfoTraceLogger, scopeName string) types.InfoTraceLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InfoMsg ¶
func InfoMsg(logger types.InfoTraceLogger, message string, keyvals ...interface{})
Record structured Info log line with a message
func TraceMsg ¶
func TraceMsg(logger types.InfoTraceLogger, message string, keyvals ...interface{})
Record structured Trace log line with a message
func TraceValuer ¶
func WithMetadata ¶
func WithMetadata(infoTraceLogger types.InfoTraceLogger) types.InfoTraceLogger
func WithScope ¶
func WithScope(logger types.InfoTraceLogger, scopeName string) types.InfoTraceLogger
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.