logger

package
v0.0.0-...-de9bd37 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PanicLevel = uint8(logrus.PanicLevel)
	FatalLevel = uint8(logrus.FatalLevel)
	ErrorLevel = uint8(logrus.ErrorLevel)
	WarnLevel  = uint8(logrus.WarnLevel)
	InfoLevel  = uint8(logrus.InfoLevel)
	DebugLevel = uint8(logrus.DebugLevel)
)

Functions

func CreateLoggerOnce

func CreateLoggerOnce(level, filelevel uint8)

CreateLoggerOnce 创建日志记录器

func Debug

func Debug(v ...interface{})

Debug 输出Debug日志

func Debugf

func Debugf(format string, params ...interface{})

Debugf 格式化输出Debug日志

func Error

func Error(v ...interface{})

Error 输出Error日志

func Errorf

func Errorf(format string, params ...interface{})

Errorf 格式化输出Error日志

func Fatal

func Fatal(v ...interface{})

Fatal 输出Fatal日志

func Fatalf

func Fatalf(format string, params ...interface{})

Fatalf 格式化输出Fatal日志

func Info

func Info(v ...interface{})

Info 输出Info日志

func Infof

func Infof(format string, params ...interface{})

Infof 格式化输出Info日志

func Panic

func Panic(v ...interface{})

Panic 输出Panic日志

func Panicf

func Panicf(format string, params ...interface{})

Panicf 格式化输出Panic日志

func Warn

func Warn(v ...interface{})

Warn 输出Warn日志

func Warnf

func Warnf(format string, params ...interface{})

Warnf 格式化输出Warn日志

Types

This section is empty.

Jump to

Keyboard shortcuts

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