logger

package
v0.0.0-...-5f3621a Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MulanPSL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LogerTrace   *log.Logger                                                         // 记录所有日志
	LogerInfo    *log.Logger                                                         // 重要的信息
	LogerWarning *log.Logger                                                         // 需要注意的信息
	LogerError   *log.Logger                                                         // 非常严重的问题
	LogerRaw     *log.Logger                                                         // 原始日志
	LogPrefix    string                                                              // 日志前辍
	LogPath      string      = filepath.Join(utils.GetSelfPath(), "logs", "log.txt") //日志目录
)

Functions

func Init

func Init(logPrefix ...string)

func LogErr

func LogErr(message string, err error)

func LogErrExit

func LogErrExit(message string, err error)

func LogInfo

func LogInfo(message string, err error)

func LogRaw

func LogRaw(message string)

func LogTrace

func LogTrace(message string, err error)

func LogWrong

func LogWrong(message string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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