Documentation ¶
Overview ¶
日志包, 依赖了
github.com/shiena/ansicolor
github.com/sirupsen/logrus
如果使用 log.Info 等方法, 则日志会初始化默认值, 日志路径: default.log
Index ¶
- Variables
- func Debug(args ...interface{})
- func Error(args ...interface{})
- func Fatal(args ...interface{})
- func Fatalln(args ...interface{})
- func Info(args ...interface{})
- func NewGormLog(level logger.LogLevel) logger.Interface
- func Print(args ...interface{})
- func Warn(args ...interface{})
- func Warning(args ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // 公开的 控制台日志对象 Stdout *logrus.Logger // 公开的 文件日志对象 File *logrus.Logger )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.