Documentation
¶
Overview ¶
Package stdzapfx provides an opionated zap logger as an fx dependency.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { // Level configures the minium logging level that will be captured. Level zapcore.Level `env:"LEVEL" envDefault:"info"` // Configure the level at which fx logs are shown, default to debug FxLevel zapcore.Level `env:"FX_LEVEL" envDefault:"debug"` // Outputs configures the zap outputs that will be opened for logging. Outputs []string `env:"OUTPUTS" envDefault:"stderr"` // Enables console encoding for more developer friendly logging output ConsoleEncoding bool `env:"CONSOLE_ENCODING"` // DevelopmentEncodingConfig enables encoding useful for developers. DevelopmentEncodingConfig bool `env:"DEVELOPMENT_ENCODING_CONFIG"` }
Config configures the package.
Click to show internal directories.
Click to hide internal directories.