Documentation ¶
Index ¶
- func Debug(args ...interface{})
- func Debugf(fmt string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(fmt string, args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(fmt string, args ...interface{})
- func Info(args ...interface{})
- func Infof(fmt string, args ...interface{})
- func Init(log Logger)
- func Trace(args ...interface{})
- func Tracef(fmt string, args ...interface{})
- func UserHook(hook Hook)
- func Warn(args ...interface{})
- func Warnf(fmt string, args ...interface{})
- type Hook
- type Level
- type Logger
- type Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Level ¶
type Level int8
const ( // TraceLevel 指定比 debug 更小粒度的日志信息 TraceLevel Level = iota + 1 // DebugLevel debug 调试信息, 内容相对更详细 DebugLevel // InfoLevel 默认的日志级别, 通常输出程序正常执行期间的日志 InfoLevel // WarnLevel 警告级别 通常输出值得关注的条目 WarnLevel // ErrorLevel 错误级别 通常是非常值得关注的错误信息 ErrorLevel // FatalLevel 该级别的日志会记录并调用 log.Exit(1), 为最高级别的错误 FatalLevel )
type Logger ¶
Click to show internal directories.
Click to hide internal directories.