vegelog

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2023 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogWriter added in v1.0.20

func GetLogWriter() io.Writer

为其他组件提供Writer接口

func GetZapLogger

func GetZapLogger() *zap.Logger

为其他组件提供logger接口

func InitLogger

func InitLogger(file string, level zapcore.Level)

InitLogger 初始化logger记录日志的文件 level 通常使用 zapcore.DebugLevel / zapcore.InfoLevel

func JudgeLogLevel

func JudgeLogLevel(debug bool) zapcore.Level

debug mode:Info模式false,Debug模式true

func LogDebug

func LogDebug(msg ...any)

func LogError

func LogError(msg ...any)

func LogFatal added in v1.1.0

func LogFatal(msg ...any)

func LogInfo

func LogInfo(msg ...any)

func LogWarn added in v1.1.0

func LogWarn(msg ...any)

Types

This section is empty.

Jump to

Keyboard shortcuts

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