Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Level string `mapstructure:"level" validate:"required,oneof=debug info warn error fatal panic"`
Format string `mapstructure:"format" validate:"required"` // time layout for log timestamps
Path string `mapstructure:"path"` // output path for the zap driver
Debug bool `mapstructure:"-"`
}
Config configures the zap logger driver. The mapstructure tags let a service load it directly from JSON (nest it under the logger config). Debug is injected by the service from its top-level debug flag, not loaded.
Click to show internal directories.
Click to hide internal directories.