Documentation
¶
Index ¶
Constants ¶
View Source
const ( // OutputStdout sends logs to stdout. OutputStdout = "STDOUT" // OutputNull sends logs to /dev/null. OutputNull = "NULL" )
Variables ¶
View Source
var LoggerFromContext = logevent.FromContext
LoggerFromContext is the concrete implementation of LogFn that should be used at runtime.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct{}
Component enables creating configured loggers.
type Config ¶
type Config struct { Level string `description:"The minimum level of logs to emit. One of DEBUG, INFO, WARN, ERROR."` Output string `description:"Destination stream of the logs. One of STDOUT, NULL."` }
Config contains all configuration values for creating a system logger.
type LogFn ¶
LogFn is the type that should be accepted by components that intend to log content using the context logger.
Click to show internal directories.
Click to hide internal directories.