Documentation
¶
Index ¶
- func ConfigureLoggers(config string) error
- func DefaultContext() logger.LoggerContext
- func GetLogger(name string, tags ...string) logger.Logger
- func LoggerContext(level logger.Level) logger.LoggerContext
- func Noop() logger.Logger
- func WrapLoggo(logger loggo.Logger) logger.Logger
- func WrapLoggoContext(context *loggo.Context) logger.LoggerContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureLoggers ¶
ConfigureLoggers configures loggers on the default context according to the given string specification, which specifies a set of modules and their associated logging levels. Loggers are colon- or semicolon-separated; each module is specified as <modulename>=<level>. White space outside of module names and levels is ignored. The root module is specified with the name "<root>".
An example specification:
`<root>=ERROR; foo.bar=WARNING`
func DefaultContext ¶
func DefaultContext() logger.LoggerContext
DefaultContext returns a logger factory that creates loggers.
func LoggerContext ¶
func LoggerContext(level logger.Level) logger.LoggerContext
LoggerContext returns a logger factory that creates loggers. Currently this is backed with loggo.
func WrapLoggoContext ¶
func WrapLoggoContext(context *loggo.Context) logger.LoggerContext
WrapLoggoContext wraps a loggo.Context as a logger.LoggerContext.
Types ¶
This section is empty.