Documentation ¶
Index ¶
- func D(format string, args ...interface{})
- func Dir() string
- func E(format string, args ...interface{})
- func F(format string, args ...interface{})
- func I(format string, args ...interface{})
- func InitLog(writePath, filename string, _maxAge, _rotationTime uint32)
- func Logf(logName string, logLevel LOGLEVEL, format string, args ...interface{})
- func Logln(logName string, logLevel LOGLEVEL, args ...interface{})
- func SetLogLevel(logLevel logrus.Level)
- func T(format string, args ...interface{})
- func W(format string, args ...interface{})
- type LOGLEVEL
- type Logger
- type LoggerMgr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetLogLevel ¶
InfoLevel=4, DebugLevel=5, logrus.TraceLevel=6
Types ¶
type LOGLEVEL ¶
type LOGLEVEL int
LOGLEVEL 日志级别
const ( TraceLevel LOGLEVEL DebugLevel InfoLevel WarnLevel ErrorLevel PanicLevel FatalLevel )
type Logger ¶
type Logger struct { Name string // contains filtered or unexported fields }
Logger logger
Click to show internal directories.
Click to hide internal directories.