Documentation
¶
Index ¶
- func Debug(v ...interface{})
- func Debugf(s string, v ...interface{})
- func Debugw(s string, v ...interface{})
- func Error(v ...interface{})
- func Errorf(s string, v ...interface{})
- func Errorw(s string, v ...interface{})
- func Fatal(v ...interface{})
- func Fatalf(s string, v ...interface{})
- func Fatalw(s string, v ...interface{})
- func Info(v ...interface{})
- func Infof(s string, v ...interface{})
- func Infow(s string, v ...interface{})
- func InitLog() error
- func Sync()
- type ZapFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ZapFactory ¶
type ZapFactory struct { Level string PathName string LogFileName string MaxSize int // 文件大小限制,单位MB MaxBackups int // 最大保留日志文件数量 MaxAge int // 日志文件保留天数 }
var (
Factory ZapFactory
)
func NewZapFactory ¶
Click to show internal directories.
Click to hide internal directories.