Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoggerInit ¶
func LoggerInit(config LoggerGoConfig, additionalAttrs ...any) (*slog.Logger, error)
The LoggerInit function initializes a logger with the provided configuration and additional attributes.
Types ¶
type LoggerGoConfig ¶
type LoggerGoConfig struct { Level string `json:"level"` // Level specifies the log level. Valid values are "debug", "info", "warn", and "error". Format string `json:"format"` // Format specifies the log format. Valid values are "text" and "json". DevMode bool `json:"dev_mode"` // Dev indicates whether the logger is running in development mode. DevFlavor string `json:"dev_flavor"` // DevFlavor specifies the development flavor. Valid values are "tint" (default), slogor and "devslog". }
LoggerGoConfig represents the configuration options for the LoggerGo logger.
Click to show internal directories.
Click to hide internal directories.