Documentation ¶
Index ¶
- Constants
- func Debug(v ...interface{})
- func Debugf(format string, v ...interface{})
- func Debugln(v ...interface{})
- func Error(v ...interface{})
- func Errorf(format string, v ...interface{})
- func Errorln(v ...interface{})
- func Fatal(v ...interface{})
- func Fatalf(format string, v ...interface{})
- func Fatalln(v ...interface{})
- func Info(v ...interface{})
- func Infof(format string, v ...interface{})
- func Infoln(v ...interface{})
- func Init(logLevel int, logFileName string, logFileDir string, ...)
- func InitLogger(level int)
- func InitLoggerWithOutput(stdOutput, errOutput io.Writer, level int)
- func InitRotateLogger(logLevel int, logFileName string, logFileDir string, ...)
- func Notice(v ...interface{})
- func Noticef(format string, v ...interface{})
- func Noticeln(v ...interface{})
- func Panic(v ...interface{})
- func Panicf(format string, v ...interface{})
- func Panicln(v ...interface{})
- func Warn(v ...interface{})
- func Warnf(format string, v ...interface{})
- func Warnln(v ...interface{})
Constants ¶
View Source
const ( LogLevelDebug = iota LogLevelInfo LogLevelNotice LogLevelWarning LogLevelError )
View Source
const ( LogLevelDebugTag = "[DEBUG]" LogLevelInfoTag = "[INFO]" LogLevelNoticeTag = "[NOTICE]" LogLevelWarningTag = "[WARN]" LogLevelErrorTag = "[ERROR]" )
View Source
const ( RotateStrategyPerHour = iota + 1 RotateStrategyPerDay )
View Source
const (
LogTimeFormat = "2006-01-02 15:04:05.000"
)
Variables ¶
This section is empty.
Functions ¶
func InitLogger ¶
func InitLogger(level int)
func InitLoggerWithOutput ¶
func InitRotateLogger ¶ added in v1.0.2
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.