logs

package
v0.0.0-...-352e39c Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLogger

func InitLogger() error

InitLogger 初始化日志记录器

func LogApiInfo

func LogApiInfo(ctx *gin.Context, err int8, result string)

LogApiInfo 记录业务接口请求日志

func LogExtInfo

func LogExtInfo(api string, uri string, param string, response string, status int, dur time.Duration)

LogExtInfo 记录请求第三方接口日志

func LogJobInfo

func LogJobInfo(content string, err any)

LogJobInfo 记录任务日志

func LogNotifyInfo

func LogNotifyInfo(biz string, param string, result any)

LogNotifyInfo 记录回调接口日志

func LogSysInfo

func LogSysInfo(content string, err any)

LogSysInfo 记录系统日志

func LogWssInfo

func LogWssInfo(addr string, userId uint64, message string)

LogWssInfo 记录Websocket日志

Types

This section is empty.

Jump to

Keyboard shortcuts

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