Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustGetLogger ¶
func MustGetLogger(config *LoggerConfig) *zap.Logger
func S ¶
func S() *zap.SugaredLogger
Types ¶
type LoggerConfig ¶
type LoggerConfig struct { // Format can be json or console Format string `mapstructure:"format" json:"format" yaml:"format"` ServiceName string `mapstructure:"service-name" json:"serviceName" yaml:"service-name"` // Level, debug, info, warning, error 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.