logger

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(log LoggerOutput, hooks ...LoggerOutput) *logrus.Logger

func NewLumberjackLogger added in v0.4.0

func NewLumberjackLogger(filePath string, fileMaxSize int) *lumberjack.Logger

func SetHook added in v0.4.0

func SetHook(logger *logrus.Logger, lo LoggerOutput)

func SetLogger added in v0.4.0

func SetLogger(logger *logrus.Logger, lo LoggerOutput)

func StringToWriter added in v0.4.0

func StringToWriter(str string) *os.File

Types

type LoggerOutput added in v0.4.0

type LoggerOutput struct {
	LogWriter     io.Writer
	LogType       string
	LogTimeFormat string
	LogLevel      string
}

Jump to

Keyboard shortcuts

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