mlog

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2019 License: Apache-2.0 Imports: 9 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 Errorln

func Errorln(args ...interface{})

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

func Fatalln

func Fatalln(args ...interface{})

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

func GetLogger

func GetLogger() *logrus.Logger

GetLogger logger

func Infoln

func Infoln(args ...interface{})

- 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:记录一下,某事又发生了

Types

This section is empty.

Jump to

Keyboard shortcuts

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