Documentation ¶
Overview ¶
Package level provides an interface and wrapper implementation for leveled logging.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DebugLevel = []interface{}{"level", "debug"} InfoLevel = []interface{}{"level", "info"} ErrorLevel = []interface{}{"level", "error"} )
Adjustable level key-value pairs
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { telemetry.Logger // SetLevel provides the ability to set the desired logging level. // This function can be used at runtime and must be safe for concurrent use. // // Note for Logger implementations, When creating a new Logger with the // With, Context, or Metric methods, the level should be set-able for all // from any of the Loggers sharing the same root Logger. SetLevel(lvl Value) // Level returns the currently configured logging level. Level() Value // New returns a new Logger based on the original implementation but with // the log level decoupled. New() telemetry.Logger }
Logger is an interface for Loggers that support Log Levels.
Click to show internal directories.
Click to hide internal directories.