Documentation ¶
Index ¶
- Variables
- type Clogger
- type LogLevel
- type Logger
- func (l *Logger) Close()
- func (l *Logger) Debug(msg string, v ...interface{})
- func (l *Logger) Error(msg string, v ...interface{})
- func (l *Logger) Info(msg string, v ...interface{})
- func (l *Logger) SetNo(no int)
- func (l *Logger) SetSplitMaxSize(size int64)
- func (l *Logger) Warn(msg string, v ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var ClogChan chan *clogChanData = make(chan *clogChanData, 100)
ClogChan 日志通道
Functions ¶
This section is empty.
Types ¶
type Clogger ¶
type Clogger interface { Debug(msg string, v ...interface{}) Info(msg string, v ...interface{}) Warn(msg string, v ...interface{}) Error(msg string, v ...interface{}) Close() }
Clogger interface类型
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger 日志类型
func NewConsoleLogger ¶
cLogger构造方法; out日志输出位置,level日志级别[info,debug,warning,error]
func NewFileLogger ¶
cLogger构造方法; out日志输出位置, level日志级别[info,debug,warning,error]
func (*Logger) SetSplitMaxSize ¶
SetSplitMaxSize 切割文件大小
Click to show internal directories.
Click to hide internal directories.