Documentation ¶
Overview ¶
logger 提供封装好的 logrus 日志库 日志等级从底到高分别为:trace, debug, info, warn, error, fatal, panic trace 用于跟踪程序运行过程中的一些细节 debug 用于调试程序 info 用于重要信息 warn 用于警告信息 error 用于错误信息 fatal 用于致命错误,程序将退出 panic 用于致命错误,程序将崩溃退出,并展开堆栈调用信息
Index ¶
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func Panic(args ...interface{})
- func Panicf(format string, args ...interface{})
- func Trace(args ...interface{})
- func Tracef(format string, args ...interface{})
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) ToStdoutAndFile ¶
Click to show internal directories.
Click to hide internal directories.