Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustGetLogger ¶
func MustGetLogger(config *LoggerConfig) *zap.Logger
Types ¶
type LoggerConfig ¶
type LoggerConfig struct {
Format string `mapstructure:"format" json:"format" yaml:"format"`
ServiceName string `mapstructure:"service-name" json:"serviceName" yaml:"service-name"`
Level string `mapstructure:"level" json:"level" yaml:"level"`
DisableCaller bool `mapstructure:"disable-caller" json:"disableCaller" yaml:"disable-caller"`
Development bool `mapstructure:"development" json:"development" yaml:"development"`
}
Click to show internal directories.
Click to hide internal directories.