Documentation
¶
Overview ¶
Package logger builds the application's structured zap logger from environment-driven configuration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
LogLevel string `default:"debug" split_words:"false"`
ProdLogFormat bool `default:"false" split_words:"false"`
}
Config controls logger construction. LogLevel is a zap level name (debug, info, warn, error); an unparseable value falls back to debug. ProdLogFormat selects zap's production JSON encoder when true and the development console encoder when false.
Click to show internal directories.
Click to hide internal directories.