logger

package
v0.0.0-...-a157c36 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2018 License: MIT Imports: 8 Imported by: 14

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)

创建日志记录器

func Debug

func Debug(v ...interface{})

输出Debug日志

func Debugf

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

格式化输出Debug日志

func Error

func Error(v ...interface{})

输出Error日志

func Errorf

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

格式化输出Error日志

func Fatal

func Fatal(v ...interface{})

输出Fatal日志

func Fatalf

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

格式化输出Fatal日志

func Info

func Info(v ...interface{})

输出Info日志

func Infof

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

格式化输出Info日志

func Panic

func Panic(v ...interface{})

输出Panic日志

func Panicf

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

格式化输出Panic日志

func Warn

func Warn(v ...interface{})

输出Warn日志

func Warnf

func Warnf(format string, params ...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