log

package
v1.9.33 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	*logrus.Entry
}

func New

func New(logPath, logFileName, loggerLevel string, maxAge int64) *Logger

func (*Logger) Create

func (l *Logger) Create(fields logrus.Fields) *Logger

type MyFormatter

type MyFormatter struct {
}

MyFormatter 定义日志格式化

func (*MyFormatter) Format

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

Format 定义日志格式

Jump to

Keyboard shortcuts

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