Documentation
¶
Index ¶
- Constants
- func CapitalLevelEncoder(l zapcore.Level, enc zapcore.PrimitiveArrayEncoder)
- func Debugf(format string, v ...interface{})
- func Debugln(v ...interface{})
- func Errorf(format string, v ...interface{})
- func Errorln(v ...interface{})
- func Fatalf(format string, v ...interface{})
- func Fatalln(v ...interface{})
- func Infof(format string, v ...interface{})
- func Infoln(v ...interface{})
- func Init(logdir string, logpref string, level string)
- func InitV2(logDir, logPref string, level string, maxSize int, maxAge, maxBackups int)
- func LogStat() (map[string]int64, []string)
- func Panicf(format string, v ...interface{})
- func Panicln(v ...interface{})
- func Sync()
- func TimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)
- func Tracef(format string, v ...interface{})
- func Traceln(v ...interface{})
- func Warnf(format string, v ...interface{})
- func Warnln(v ...interface{})
- type Logger
Constants ¶
View Source
const ( LV_TRACE int = 0 LV_DEBUG int = 1 LV_INFO int = 2 LV_WARN int = 3 LV_ERROR int = 4 LV_FATAL int = 5 LV_PANIC int = 6 )
log 级别
Variables ¶
This section is empty.
Functions ¶
func CapitalLevelEncoder ¶
func CapitalLevelEncoder(l zapcore.Level, enc zapcore.PrimitiveArrayEncoder)
func TimeEncoder ¶
func TimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)
Types ¶
Click to show internal directories.
Click to hide internal directories.