Documentation ¶ Index ¶ func New(level slog.Level) *slog.Logger func NewAsDefault(level slog.Level) *slog.Logger func NewAsDefaultFromConfig(config Config) *slog.Logger func NewFromConfig(config Config) *slog.Logger type Config Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New(level slog.Level) *slog.Logger ... func NewAsDefault ¶ func NewAsDefault(level slog.Level) *slog.Logger ... func NewAsDefaultFromConfig ¶ func NewAsDefaultFromConfig(config Config) *slog.Logger ... func NewFromConfig ¶ func NewFromConfig(config Config) *slog.Logger ... Types ¶ type Config ¶ type Config struct { // ... Level slog.Level `koanf:"level" default:"info"` } ... Source Files ¶ View all Source files logger.go Click to show internal directories. Click to hide internal directories.