Documentation ¶
Index ¶
- Constants
- type Log
- func (p *Log) Crit(v ...interface{})
- func (p *Log) Debug(v ...interface{})
- func (p *Log) Emerg(v ...interface{})
- func (p *Log) Error(v ...interface{})
- func (p *Log) Info(v ...interface{})
- func (p *Log) Init(absPath, namePrefix string) (err error)
- func (p *Log) Notice(v ...interface{})
- func (p *Log) SetLevel(level int)
- func (p *Log) Stop()
- func (p *Log) Trace(v ...interface{})
- func (p *Log) Warn(v ...interface{})
Constants ¶
View Source
const ( LevelOff int = 0 //关闭 LevelEmerg int = 1 LevelCrit int = 2 LevelError int = 3 LevelWarn int = 4 LevelNotice int = 5 LevelInfo int = 6 LevelDebug int = 7 LevelTrace int = 8 LevelOn int = 9 //9 全部打开 )
日志等级
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.