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) (channels.Channel, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureStdlibLogOutput ¶
func JustLogger ¶ added in v0.18.0
func NewLoggerFromLoggingConfig ¶
func NewLoggerFromLoggingConfig(loggingConfig *logconfig.LoggingConfig) (*logging.Logger, error)
Obtain a logger from a LoggingConfig
func NewStdErrLogger ¶
func SwapOutputLoggersFromLoggingConfig ¶ added in v0.17.0
func SwapOutputLoggersFromLoggingConfig(logger *logging.Logger, loggingConfig *logconfig.LoggingConfig) (channels.Channel, error)
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.