logger

package
v1.1.42 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(code, message string)

func HandlePanic

func HandlePanic()

捕捉并处理异常的函数

func Info

func Info(code, message string)

func InfoWithCtx

func InfoWithCtx(c *gin.Context, code, message string)

func LogInfoMiddle

func LogInfoMiddle() gin.HandlerFunc

func PanicMiddle

func PanicMiddle() gin.HandlerFunc

用于捕获并记录panic的中间件

Types

This section is empty.

Jump to

Keyboard shortcuts

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