Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateLogger ¶
func CreateLogger(c config.LoggingConfig) (*slog.Logger, error)
CreateLogger creates a new logger based on the provided config. An error is returned if the logger cannot be created because of an invalid log level, or because it cannot open the log file for writing. If the config is not enabled, a no operation logger is returned, that does not log (the logging functions do nothing).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.