logger

package
v0.0.0-...-b9d6e19 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const TimeFormat = "2006-01-02 15:04:05"

Variables

This section is empty.

Functions

func InitLogger

func InitLogger(conf conf.LoggerConf) error

func Logger

func Logger() *logrus.Logger

func OpenLogFile

func OpenLogFile(filePath, fileName string) (io.Writer, error)

func Output

func Output() io.Writer

Types

type LogFormatter

type LogFormatter struct{}

func (*LogFormatter) Format

func (t *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