Documentation ¶
Overview ¶
Package logs 日志管理包。
通过本包,可自动生成日志文件,并根据当前日期创建对应存放目录。
Index ¶
- Constants
- Variables
- func Close()
- func Error(format string, a ...interface{})
- func Fatal(format string, a ...interface{})
- func FatalError(err error)
- func Info(format string, a ...interface{})
- func Log(file string)
- func Trace(format string, a ...interface{})
- func Warning(format string, a ...interface{})
Constants ¶
View Source
const ( LevelTrace logLevel = 1 << iota // 追踪日志 LevelInfo // 普通信息 LevelWarn // 警告信息 LevelError // 错误信息 Flags = log.Ldate | log.Ltime | log.Lshortfile // 日志参数 )
Variables ¶
View Source
var Logger *logger
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.