Documentation ¶
Overview ¶
* @Author: NyanCatda * @Date: 2022-05-22 02:31:00 * @LastEditTime: 2022-11-27 16:10:54 * @LastEditors: NyanCatda * @Description: Gorm日志模块 * @FilePath: \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 {
Log AyaLog.LogPrint // 日志接口实例
}
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 {*}
Click to show internal directories.
Click to hide internal directories.