logger

package
v0.0.36 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 8 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnableConsole added in v0.0.25

func EnableConsole(level Level, disableColor bool)

EnableConsole 启用该设置后,日志内容将向标准控台输出

func EnableFileWithJson added in v0.0.25

func EnableFileWithJson(level Level, fileConfig ...*lumberjack.Logger)

EnableFileWithJson 启用该配置后将写入日志文件,并将日志输出json格式

func EnableFileWithText added in v0.0.25

func EnableFileWithText(level Level, fileConfig ...*lumberjack.Logger)

EnableFileWithText 启用该配置后写入日志文件,将日志输出为text格式

func Logrus

func Logrus() *logrus.Logger

Types

type Level added in v0.0.25

type Level uint32
const (
	PanicLevel Level = iota
	FatalLevel
	ErrorLevel
	WarnLevel
	InfoLevel
	DebugLevel
	TraceLevel
)

Jump to

Keyboard shortcuts

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