Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ZapConfig zap.Config `json:"zap_config" yaml:"zap_config"`
LogRotate lumberjack.Logger `json:"log_rotate" yaml:"log_rotate"`
}
Config represents the setting for zap logger.
type Logger ¶
type Logger struct {
Zap *zap.SugaredLogger
}
Logger is an alternative implementation of *gorm.Logger
func (*Logger) GetZapLogger ¶
func (log *Logger) GetZapLogger() *zap.SugaredLogger
GetZapLogger returns zapSugaredLogger
Click to show internal directories.
Click to hide internal directories.