Documentation ¶
Index ¶
- func NewLogger(mod ...ModOptions) *zap.Logger
- type Logger
- type ModOptions
- func SetAppName(AppName string) ModOptions
- func SetDebugFileName(DebugFileName string) ModOptions
- func SetDevelopment(Development bool) ModOptions
- func SetErrorFileName(ErrorFileName string) ModOptions
- func SetInfoFileName(InfoFileName string) ModOptions
- func SetLevel(Level zapcore.Level) ModOptions
- func SetLogFileDir(LogFileDir string) ModOptions
- func SetMaxAge(MaxAge int) ModOptions
- func SetMaxBackups(MaxBackups int) ModOptions
- func SetMaxSize(MaxSize int) ModOptions
- func SetWarnFileName(WarnFileName string) ModOptions
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLogger ¶
func NewLogger(mod ...ModOptions) *zap.Logger
Types ¶
type ModOptions ¶
type ModOptions func(options *Options)
func SetAppName ¶
func SetAppName(AppName string) ModOptions
func SetDebugFileName ¶
func SetDebugFileName(DebugFileName string) ModOptions
func SetDevelopment ¶
func SetDevelopment(Development bool) ModOptions
func SetErrorFileName ¶
func SetErrorFileName(ErrorFileName string) ModOptions
func SetInfoFileName ¶
func SetInfoFileName(InfoFileName string) ModOptions
func SetLevel ¶
func SetLevel(Level zapcore.Level) ModOptions
func SetLogFileDir ¶
func SetLogFileDir(LogFileDir string) ModOptions
func SetMaxAge ¶
func SetMaxAge(MaxAge int) ModOptions
func SetMaxBackups ¶
func SetMaxBackups(MaxBackups int) ModOptions
func SetMaxSize ¶
func SetMaxSize(MaxSize int) ModOptions
func SetWarnFileName ¶
func SetWarnFileName(WarnFileName string) ModOptions
Click to show internal directories.
Click to hide internal directories.