Documentation ¶
Index ¶
- func CaptureStdlibLogOutput(logger *logging.Logger)
- func JustLogger(logger *logging.Logger, _ channels.Channel) *logging.Logger
- func NewLoggerFromLoggingConfig(loggingConfig *logconfig.LoggingConfig) (*logging.Logger, error)
- func NewStdErrLogger() (*logging.Logger, error)
- func SwapOutputLoggersFromLoggingConfig(logger *logging.Logger, loggingConfig *logconfig.LoggingConfig) (error, channels.Channel)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureStdlibLogOutput ¶
func NewLoggerFromLoggingConfig ¶
func NewLoggerFromLoggingConfig(loggingConfig *logconfig.LoggingConfig) (*logging.Logger, error)
Obtain a logger from a LoggingConfig
func NewStdErrLogger ¶
func SwapOutputLoggersFromLoggingConfig ¶
func SwapOutputLoggersFromLoggingConfig(logger *logging.Logger, loggingConfig *logconfig.LoggingConfig) (error, channels.Channel)
Hot swap logging config by replacing output loggers of passed InfoTraceLogger with those built from loggingConfig
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.