mlog

package
v0.7.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LogSavePath = "runtime/logs/"
	LogSaveName = "log"
	LogFileExt  = "log"
	TimeFormat  = "20060102"
)

Functions

func Debugln

func Debugln(args ...interface{})

- debug:没问题,就看看堆栈

func DebuglnErr added in v0.6.4

func DebuglnErr(err error)

- debug:没问题,就看看堆栈

func Errorln

func Errorln(args ...interface{})

- Error:跟遇到的用户说对不起,可能有bug

func ErrorlnErr added in v0.6.4

func ErrorlnErr(err error)

- Error:跟遇到的用户说对不起,可能有bug

func Fatalln

func Fatalln(args ...interface{})

- Fatal:网站挂了,或者极度不正常

func FatallnlErr added in v0.6.4

func FatallnlErr(err error)

- Fatal:网站挂了,或者极度不正常

func GetCaller added in v0.6.8

func GetCaller(skip int) string

getCaller retrieves the name of the first non-logrus calling function 获取调用者的文件、方法名、行数。

func GetLogger

func GetLogger() *logrus.Logger

GetLogger logger

func Infoln

func Infoln(args ...interface{})

- Info:提示一切正常

func InfolnErr added in v0.6.4

func InfolnErr(err error)

- Info:提示一切正常

func SetReportCaller added in v0.6.1

func SetReportCaller(reportCaller bool)

If you wish to add the calling method as a field 获取调用 日志的具体位置

func Setup

func Setup()

初始化日志配置

func Warnln

func Warnln(args ...interface{})

- Warn:记录一下,某事又发生了

func WarnlnErr added in v0.6.4

func WarnlnErr(err error)

- Warn:记录一下,某事又发生了

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL