lifecycle

package
v0.24.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CaptureStdlibLogOutput

func CaptureStdlibLogOutput(logger *logging.Logger)

func JustLogger added in v0.18.0

func JustLogger(logger *logging.Logger, _ channels.Channel) *logging.Logger

func NewLoggerFromLoggingConfig

func NewLoggerFromLoggingConfig(loggingConfig *logconfig.LoggingConfig) (*logging.Logger, error)

Obtain a logger from a LoggingConfig

func NewStdErrLogger

func NewStdErrLogger() (*logging.Logger, error)

func SwapOutputLoggersFromLoggingConfig added in v0.17.0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL