mlog

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

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 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