Documentation
¶
Index ¶
- Constants
- 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 GetFileConn() *rotatelogs.RotateLogs
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func Panic(args ...interface{})
- func Panicf(format string, args ...interface{})
- func Println(args ...interface{})
- func SetLevel(logLevel logrus.Level)
- func SetLogger(config LogConfig) *logrus.Logger
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- func WithField(key string, value string) *logrus.Entry
- type DFormatter
- type LogConfig
Constants ¶
View Source
const ( PanicLevel logrus.Level = logrus.PanicLevel FatalLevel logrus.Level = logrus.FatalLevel ErrorLevel logrus.Level = logrus.ErrorLevel WarnLevel logrus.Level = logrus.WarnLevel InfoLevel logrus.Level = logrus.InfoLevel DebugLevel logrus.Level = logrus.DebugLevel )
type PanicLevel = logrus.PanicLevel
Variables ¶
This section is empty.
Functions ¶
func GetFileConn ¶
func GetFileConn() *rotatelogs.RotateLogs
Types ¶
type DFormatter ¶
type DFormatter struct {
TimestampFormat string
}
Click to show internal directories.
Click to hide internal directories.