Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLogger ¶
NewLogger creates a new logger based on the provided configuration.
Parameters: - cfg: a pointer to a Config struct that contains the configuration for the logger.
Returns: - logger: a pointer to a slog.Logger struct that represents the new logger instance. - error: an error if there was an issue creating the logger.
Types ¶
Click to show internal directories.
Click to hide internal directories.