logging

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 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 types.InfoTraceLogger, message string, keyvals ...interface{})

Record structured Info log line with a message

func Msg

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

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

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.

Directories

Path Synopsis
adapters

Jump to

Keyboard shortcuts

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