loguselogrus

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2025 License: MIT Imports: 7 Imported by: 2

README

loguselogrus

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Logger = logrus.New()
)

Functions

func EnableConsole

func EnableConsole()

func EnableDebug

func EnableDebug()

func EnableError

func EnableError()

func EnableFatal

func EnableFatal()

func EnableInfo

func EnableInfo()

func EnableLogFile

func EnableLogFile(folder, filename string, maxAge, rotateTime time.Duration)

func EnableLogFile2

func EnableLogFile2(folder, filename string, maxBackups, maxSize, maxAge int)

func EnableTrace

func EnableTrace()

func EnableWarn

func EnableWarn()

func SetFormatter

func SetFormatter(formatter logrus.Formatter)

func SetReportCaller

func SetReportCaller(reportCaller bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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