Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Driver string `mapstructure:"driver" validate:"required,oneof=zap noop"`
Zap zap.Config `mapstructure:"zap"`
}
Config selects the logger driver and nests each driver's own config. Only the selected driver's sub-config is read; the factory never restates a driver's fields. The mapstructure/validate tags let a service load it directly (alias it).
Click to show internal directories.
Click to hide internal directories.