Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidLogFormat = errors.New("invalid log format")
ErrInvalidLogFormat is an error, which is returned when an invalid log format has been configured.
View Source
var ErrInvalidLogLevel = errors.New("invalid log level")
ErrInvalidLogLevel is an error, which is returned when an invalid log level has been configured.
Functions ¶
func NewFromConfig ¶
NewFromConfig creates a new slog.Logger based on the provided config.LoggingConfig spec. The returned logger outputs to the given io.Writer.
Types ¶
Click to show internal directories.
Click to hide internal directories.