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; an unparseable value falls back to debug. ProdLogFormat selects the production JSON encoder over the development console encoder.
Click to show internal directories.
Click to hide internal directories.