Documentation
¶
Index ¶
- Variables
- func Debugln(args ...interface{})
- func DebuglnErr(err error)
- func Errorln(args ...interface{})
- func ErrorlnErr(err error)
- func Fatalln(args ...interface{})
- func FatallnlErr(err error)
- func GetCaller(skip int) string
- func GetLogger() *logrus.Logger
- func Infoln(args ...interface{})
- func InfolnErr(err error)
- func SetReportCaller(reportCaller bool)
- func Setup()
- func Warnln(args ...interface{})
- func WarnlnErr(err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LogSavePath = "runtime/logs/" LogSaveName = "log" LogFileExt = "log" TimeFormat = "20060102" )
Functions ¶
func GetCaller ¶ added in v0.6.8
getCaller retrieves the name of the first non-logrus calling function 获取调用者的文件、方法名、行数。
func SetReportCaller ¶ added in v0.6.1
func SetReportCaller(reportCaller bool)
If you wish to add the calling method as a field 获取调用 日志的具体位置
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.