logger

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogFile

func LogFile(file string) *os.File

LogFile 日志输出文件

func NewLogger

func NewLogger(logLevel logrus.Level, logFile string, enableConsole bool) *logrus.Logger

NewLogger 创建Logger

Types

type LogFormatter

type LogFormatter struct{}

LogFormatter 自定义格式

func (*LogFormatter) Format

func (f *LogFormatter) 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