Documentation
¶
Index ¶
- Constants
- Variables
- 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 Logf(level uint8, format string, v ...interface{})
- func Logln(level uint8, v ...interface{})
- func SetLevel(level uint8)
- func SetTagLevel(level uint8, tags ...string)
- func Tracef(format string, v ...interface{})
- func Traceln(v ...interface{})
- func Verbosef(format string, v ...interface{})
- func Verboseln(v ...interface{})
- func Warningf(format string, v ...interface{})
- func Warningln(v ...interface{})
Constants ¶
View Source
const ( VERBOSE uint8 = iota /* 最详细的输出 */ TRACE /* 调试信息 */ DEBUG /* 函数进入退出信息 */ INFO /* 服务启动关闭信息及请求访问信息 */ WARNING /* 异常警告信息(无需人工干预) */ ERROR /* 错误信息(不影响服务,需要人工干预) */ FATAL /* 崩溃信息(无法继续提供服务) */ SILENCE )
Variables ¶
View Source
var LogLevelNames [8]string = [8]string{"VERBOSE", "TRACE", "DEBUG", "INFO", "WARNING", "ERROR", "FATAL", "SILENCE"}
Functions ¶
func SetTagLevel ¶
指定具体标志的日志级别,应小于全局级别 结合SetLevel,可以只输出指定标志的日志
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.