Documentation ¶
Index ¶
- func New(config *log.LoggerConfig) log.Logger
- func NewLoggerConfig() *log.LoggerConfig
- func NewLoggerConfigWith(enabled bool, backend, level string, opts ...log.Opt) *log.LoggerConfig
- func NewStdLoggerWithConfig(config *log.LoggerConfig) log.Logger
- func RegisterBuilder(backendName string, builderFunc log.BuilderFunc)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(config *log.LoggerConfig) log.Logger
New creates and returns a Logger instance from LoggerConfig
func NewLoggerConfig ¶
func NewLoggerConfig() *log.LoggerConfig
NewLoggerConfig returns a default LoggerConfig
func NewLoggerConfigWith ¶ added in v1.2.9
NewLoggerConfigWith returns a default LoggerConfig
func NewStdLoggerWithConfig ¶ added in v1.5.19
func NewStdLoggerWithConfig(config *log.LoggerConfig) log.Logger
NewStdLoggerWithConfig return a stdlib `log` logger
func RegisterBuilder ¶ added in v1.3.11
func RegisterBuilder(backendName string, builderFunc log.BuilderFunc)
RegisterBuilder register a builder for your logger.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.