log

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogger

func GetLogger() *logrus.Logger

func IsLoggerDebug

func IsLoggerDebug() bool

func LogInfoString

func LogInfoString(w io.Writer, s string)

func SetLogLevel

func SetLogLevel(level logrus.Level)

func SetOutputFile

func SetOutputFile(path string) error

设置日志输出文件

func SetOutputWriter

func SetOutputWriter(w io.Writer) error

将日志输出到写入流中

Types

type LogFormatter

type LogFormatter struct {
	*logrus.TextFormatter
}

func (*LogFormatter) Format

func (f *LogFormatter) Format(entry *logrus.Entry) ([]byte, error)

Jump to

Keyboard shortcuts

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