Documentation ¶
Index ¶
- func Colors(keyvals ...interface{}) term.FgBgColor
- func InfoMsg(logger loggers.InfoTraceLogger, message string, keyvals ...interface{})
- func InfoMsgVals(logger loggers.InfoTraceLogger, message string, vals ...interface{})
- func Msg(logger kitlog.Logger, message string, keyvals ...interface{}) error
- func MsgVals(logger kitlog.Logger, message string, vals ...interface{}) error
- func TraceMsg(logger loggers.InfoTraceLogger, message string, keyvals ...interface{})
- func TraceMsgVals(logger loggers.InfoTraceLogger, message string, vals ...interface{})
- func TraceValuer() kitlog.Valuer
- func WithMetadata(infoTraceLogger loggers.InfoTraceLogger) loggers.InfoTraceLogger
- func WithScope(logger loggers.InfoTraceLogger, scopeName string) loggers.InfoTraceLogger
- type LoggingConfig
- type SinkConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InfoMsg ¶
func InfoMsg(logger loggers.InfoTraceLogger, message string, keyvals ...interface{})
Record structured Info log line with a message
func InfoMsgVals ¶
func InfoMsgVals(logger loggers.InfoTraceLogger, message string, vals ...interface{})
Record structured Info log line with a message and conventional keys
func TraceMsg ¶
func TraceMsg(logger loggers.InfoTraceLogger, message string, keyvals ...interface{})
Record structured Trace log line with a message
func TraceMsgVals ¶
func TraceMsgVals(logger loggers.InfoTraceLogger, message string, vals ...interface{})
Record structured Trace log line with a message and conventional keys
func TraceValuer ¶
func WithMetadata ¶
func WithMetadata(infoTraceLogger loggers.InfoTraceLogger) loggers.InfoTraceLogger
func WithScope ¶
func WithScope(logger loggers.InfoTraceLogger, scopeName string) loggers.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 ¶
type LoggingConfig ¶
type LoggingConfig struct {
Sinks []SinkConfig
}
type SinkConfig ¶
type SinkConfig struct {
Channels []string
}