logging

package
v0.16.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Colors

func Colors(keyvals ...interface{}) term.FgBgColor

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 Msg

func Msg(logger kitlog.Logger, message string, keyvals ...interface{}) error

Record a structured log line with a message

func MsgVals

func MsgVals(logger kitlog.Logger, message string, vals ...interface{}) error

Record a structured 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 TraceValuer() kitlog.Valuer

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
}

Directories

Path Synopsis
adapters

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL