Documentation ¶
Index ¶
Constants ¶
View Source
const MasterLogName = `master`
MasterLogName 主日志的名称
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RotateLogger ¶
type RotateLogger struct {
// contains filtered or unexported fields
}
RotateLogger 每天向前滚动的日志写入器
func (*RotateLogger) Close ¶
func (rl *RotateLogger) Close(quitChan chan bool)
Close 关闭一个RotateLogger
func (*RotateLogger) LogLevel ¶
func (rl *RotateLogger) LogLevel(level string, v ...interface{})
LogLevel 打印指定等级前缀的日志,并且加入调用函数以及运行的Goroutine ID信息
Click to show internal directories.
Click to hide internal directories.