package
0.0.0-20231027131641-93b1e7503408
Repository: https://github.com/lightstar/golib.git
Documentation: pkg.go.dev
# Functions
MustNew function creates new standard logger with provided options and panics on any error.
New function creates new standard logger with provided options.
NewNop function creates dummy logger that produces no output at all.
WithConfig option retrieves configuration from provided configuration service.
WithDebug option sets debug mode.
WithName option applies provided logger name.
WithStderr option applies customized stderr, usually for testing.
WithStdout option applies customized stdout, usually for testing.
# Structs
Config structure with logger configuration.
StandardLogger which uses standard logging format and implements Logger interface.
# Interfaces
ConfigService interface used to obtain configuration from somewhere into some specific structure.
Logger interface.
# Type aliases
Option function that is fed to New and MustNew.