Documentation ¶
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 GinLogger(c *gin.Context)
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func Init(logty int, serName string)
- func SetDebug(d bool)
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- func WithField(key string, value interface{}) *logrus.Entry
- func WithFields(fs logrus.Fields) *logrus.Entry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fatal ¶
func Fatal(args ...interface{})
使用级别,参照一下 - Fatal:网站挂了,或者极度不正常 - Error:跟遇到的用户说对不起,可能有bug - Warn:记录一下,某事又发生了 - Info:提示一切正常 - debug:没问题,就看看堆栈
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.