log

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PanicLevel int = iota
	FatalLevel
	ErrorLevel
	WarnLevel
	InfoLevel
	DebugLevel
	TraceLevel
)

Variables

This section is empty.

Functions

func CreateLogrusInstance

func CreateLogrusInstance(filePath string, size, backups, level int, local bool) *log.Logger

CreateLogrusInstance。 获取输出日志到文件的 logrus 实例。 filePath:日志输出文件路径。 size:日志文件最大 size, 单位是 MB。 backups:最大过期日志保留的个数。 local:控制是否打印时间。 level:日志级别。

Types

This section is empty.

Jump to

Keyboard shortcuts

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