logger

package
v0.0.0-...-d6ebf68 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// 公开的 控制台日志对象
	StdoutLogger *logrus.Logger
	// 公开的 文件日志对象
	FileLogger *logrus.Logger
)

Functions

func Debug

func Debug(args ...interface{})

debug level

func Error

func Error(args ...interface{})

error level

func Fatal

func Fatal(args ...interface{})

Fatal level

func Fatalln

func Fatalln(args ...interface{})

func Info

func Info(args ...interface{})

info level

func InitLog

func InitLog()

初始化 日志

func NewColorfulLogger

func NewColorfulLogger() *logrus.Logger

创建一个 带颜色的控制台日志对象

func NewFileLogger

func NewFileLogger(filePath string) *logrus.Logger

创建一个 文件日志对象, 不带颜色

func Print

func Print(args ...interface{})

func Warn

func Warn(args ...interface{})

warn level

func Warning

func Warning(args ...interface{})

Warning level

Types

This section is empty.

Jump to

Keyboard shortcuts

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