recorder

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RecordExceptionLog

func RecordExceptionLog(c *gin.Context, errString string)

func RecordLoginLog

func RecordLoginLog(c *gin.Context, userId int64)

func RecordOpLog

func RecordOpLog(opTarget string, v ...any) gin.HandlerFunc

RecordOpLog opTarget是操作的对象;可变参数v中的第一个表示动作名称,第二个表示是否是敏感信息(日志中不会记录敏感参数),如果没有动作名称,也可以直接把第一个参数用作bool值,表示是否敏感信息

Types

This section is empty.

Jump to

Keyboard shortcuts

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