logs

package
v0.0.0-...-23b3bcd Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLoggerWithPackageName

func GetLoggerWithPackageName() *logrus.Entry

func GetOutput

func GetOutput() io.Writer

func Logger

func Logger() *logrus.Entry

func SetLogConfig

func SetLogConfig(level logrus.Level, formatter string)

func UseConsoleAppender

func UseConsoleAppender(level logrus.Level, formatter string)

@title UseConsoleAppender @description 设置日志输出到标准输出,建议程序启动时设置,程序默认输出到标准输出 @param level 日志级别 @parma formatter 日志格式, text or json

func UseRollingFileAppender

func UseRollingFileAppender(filename string, formatter string, level logrus.Level, maxSize, maxBackup, maxAge int)

Types

This section is empty.

Jump to

Keyboard shortcuts

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