logger

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DebugLevel = "debug"
	InfoLevel  = "info"
	WarnLevel  = "warn"
	ErrorLevel = "error"
)

日志级别常量

Variables

View Source
var (
	// Log 全局日志实例
	Log *logrus.Logger
)

Functions

func Debug

func Debug(format string, args ...interface{})

Debug 调试日志

func Error

func Error(format string, args ...interface{})

Error 错误日志

func Info

func Info(format string, args ...interface{})

Info 信息日志

func InitLogger

func InitLogger(level string)

InitLogger 初始化日志系统

func Warn

func Warn(format string, args ...interface{})

Warn 警告日志

Types

This section is empty.

Jump to

Keyboard shortcuts

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