Documentation
¶
Overview ¶
* @Author: NyanCatda * @Date: 2022-05-22 02:31:00 * @LastEditTime: 2022-05-22 22:43:49 * @LastEditors: NyanCatda * @Description: Gorm日志模块 * @FilePath: \AyaLog\ModLog\GormLog\GormLog.go
Index ¶
- type GormLog
- func (g GormLog) Error(ctx context.Context, msg string, data ...interface{})
- func (g GormLog) Info(ctx context.Context, msg string, data ...interface{})
- func (g GormLog) LogMode(logger.LogLevel) logger.Interface
- func (g GormLog) Trace(ctx context.Context, begin time.Time, fc func() (string, int64), err error)
- func (g GormLog) Warn(ctx context.Context, msg string, data ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GormLog ¶
type GormLog struct { }
func (GormLog) Error ¶
*
- @description: 打印Error日志
- @param {context.Context} ctx 上下文
- @param {string} msg 日志内容
- @param {...interface{}} data 日志内容
- @return {*}
func (GormLog) Info ¶
*
- @description: 打印Info日志
- @param {context.Context} ctx 上下文
- @param {string} msg 日志内容
- @param {...interface{}} data 日志内容
- @return {*}
func (GormLog) LogMode ¶
*
- @description: 日志模型(废弃函数)
- @param {logger.LogLevel} LogLevel 日志等级
- @return {*}
Click to show internal directories.
Click to hide internal directories.