package
1.11.9
Repository: https://github.com/xmidt-org/webpa-common.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

CallerKey returns the logging key to be used for the stack location of the logging call.
Debug places both the caller and a constant debug level into the prefix of the returned logger.
DefaultCaller produces a contextual logger as with log.With, but automatically prepends the caller under the CallerKey.
DefaultLogger returns a global singleton NOP logger.
Enrich uses log.With to add contextual information to a logger.
EnrichPrefix is like Enrich, except that it uses log.WithPrefix.
Error places both the caller and a constant error level into the prefix of the returned logger.
ErrorKey returns the logging key to be used for error instances.
FromViper produces an Options from a (possibly nil) Viper instance.
GetLogger retrieves the go-kit logger associated with the context.
Info places both the caller and a constant info level into the prefix of the returned logger.
MessageKey returns the logging key to be used for the textual message of the log entry.
New creates a go-kit Logger from a set of options.
No description provided by the author
NewFilter applies the Options filtering rules in the package to an arbitrary go-kit Logger.
NewTestLogger produces a go-kit Logger which logs to stdout only if the verbose testing mode.
Sub returns the standard child Viper, using LoggingKey, for this package.
TimestampKey returns the logging key to be used for the timestamp.
Warn places both the caller and a constant warn level into the prefix of the returned logger.
WithLogger adds the given Logger to the context so that it can be retrieved with Logger.

# Constants

LoggingKey is the Viper subkey under which logging should be stored.
No description provided by the author

# Structs

Options stores the configuration of a Logger.

# Interfaces

CaptureLogger is a go-kit Logger which dispatches log key/value pairs to a channel for test assertions and verifications.
Contextual describes an object which can describe itself with metadata for logging.