logger

package
v0.0.0-...-799f385 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 7 Imported by: 27

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Log = initLogger()

Log is the default logger

Functions

func EnableFileLog

func EnableFileLog()

打开文件

func InitHook

func InitHook(Log *logrus.Logger)

func InitRotationHook

func InitRotationHook(Log *logrus.Logger)

func SetDebugLevel

func SetDebugLevel()

所有消息级别

func SetInfoLevel

func SetInfoLevel()

不输出debug

func SetLogLevel

func SetLogLevel(level logrus.Level)

func SetLogger

func SetLogger(l interfaces.Logger)

SetLogger rewrites the default logger

func SetWarnLevel

func SetWarnLevel()

warn, error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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