Documentation
¶
Index ¶
Constants ¶
View Source
const ( // EnvFormat controls the output handler format for structured logs. EnvFormat = "LOG_FORMAT" // EnvLevel controls the minimum severity level for structured logs. EnvLevel = "LOG_LEVEL" )
Variables ¶
This section is empty.
Functions ¶
func BootstrapFromEnv ¶
func BootstrapFromEnv(opts BootstrapOptions) (*slog.Logger, error)
BootstrapFromEnv loads logging config from env, installs the default logger, and returns it.
Types ¶
type BootstrapOptions ¶
BootstrapOptions controls logger initialization behavior.
type Config ¶
Config is the validated logging configuration derived from environment variables.
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig returns the default structured logging configuration.
func LoadConfigFromEnv ¶
LoadConfigFromEnv parses and validates logging environment variables.
Click to show internal directories.
Click to hide internal directories.