Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultZapConfig ¶
Types ¶
type Config ¶
type Config struct { Mode string `env:"LOG_MODE" envDefault:"development"` Level string `env:"LOG_LEVEL" envDefault:"DEBUG"` Encoding string `env:"LOG_ENCODING" envDefault:"console"` }
func (*Config) ToZapConfig ¶
type Logger ¶
type Logger struct { *zap.SugaredLogger // contains filtered or unexported fields }
func GetLoggerWithConfig ¶
Click to show internal directories.
Click to hide internal directories.