Documentation ¶
Index ¶
- Variables
- func Debug(msg string, fields ...zap.Field)
- func Debugf(format string, args ...any)
- func Error(msg string, fields ...zap.Field)
- func Errorf(format string, args ...any)
- func Fatal(msg string, fields ...zap.Field)
- func Fatalf(format string, args ...any)
- func Info(msg string, fields ...zap.Field)
- func Infof(format string, args ...any)
- func Init(cfg Config)
- func Panic(msg string, fields ...zap.Field)
- func Panicf(format string, args ...any)
- func Warn(msg string, fields ...zap.Field)
- func Warnf(format string, args ...any)
- type Config
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Config ¶
type Config struct { Level string // logger level: debug, info, warn, error, panic, fatal Encoding string // logger encoding: json, console Development bool // development mode FileName string // logger file name MaxSize int // logger file max size, unit: MB MaxBackups int // logger file max backups MaxAge int // logger file max age, unit: day Compress bool // Compress determines if the rotated logger files should be compressed using gzip. }
Click to show internal directories.
Click to hide internal directories.