Documentation ¶
Index ¶
- type ILogger
- type Logger
- func (l *Logger) DPanic(args ...interface{})
- func (l *Logger) DPanicf(template string, args ...interface{})
- func (l *Logger) Error(args ...interface{})
- func (l *Logger) Errorf(template string, args ...interface{})
- func (l *Logger) Info(args ...interface{})
- func (l *Logger) Infof(template string, args ...interface{})
- func (l *Logger) Init()
- func (l *Logger) Panic(args ...interface{})
- func (l *Logger) Panicf(template string, args ...interface{})
- func (l *Logger) Warn(args ...interface{})
- func (l *Logger) Warnf(template string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ILogger ¶
type ILogger interface { ////init 初始化日志配置 Init() //Info 打印信息 Info(args ...interface{}) //Infof 打印信息,附带template信息 Infof(template string, args ...interface{}) //Warn 打印警告 Warn(args ...interface{}) //Warnf 打印警告,附带template信息 Warnf(template string, args ...interface{}) //Error 打印错误 Error(args ...interface{}) //Errorf 打印错误,附带template信息 Errorf(template string, args ...interface{}) //Panic 打印Panic信息 Panic(args ...interface{}) //Panicf 打印Panic信息,附带template信息 Panicf(template string, args ...interface{}) //DPanic 打印DPanic信息,附带template信息 DPanic(args ...interface{}) //DPanicf 打印DPanic信息 DPanicf(template string, args ...interface{}) }
ILogger 定义日志输出接口
Click to show internal directories.
Click to hide internal directories.