Documentation ¶
Index ¶
- Constants
- Variables
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Error(args ...interface{})
- func Fatal(args ...interface{})
- func Info(args ...interface{})
- func InitLogger(logFilePath, logFileName string, model string) *logrus.Logger
- func Warn(args ...interface{})
- func WithField(key string, value interface{}) *logrus.Entry
Constants ¶
View Source
const ( // DebugMode indicates gin mode is debug. DebugMode = "debug" // ReleaseMode indicates gin mode is release. ReleaseMode = "release" // TestMode indicates gin mode is test. TestMode = "test" )
Variables ¶
View Source
var Logger *logrus.Logger
Logger 系统日志
Functions ¶
func InitLogger ¶
InitLogger 日志模块初始化
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.