Documentation ¶
Overview ¶
Package vlog Copyright 2016-2023 chad.wang<chad.wang@icloudsky.com>. All rights reserved. Gorm日志与gogf框架日志进行融合
Package vlog Copyright 2016-2023 chad.wang<chad.wang@icloudsky.com>. All rights reserved.
Index ¶
- func Debug(ctx context.Context, v ...interface{})
- func Debugf(ctx context.Context, format string, v ...interface{})
- func Error(ctx context.Context, v ...interface{})
- func Errorf(ctx context.Context, format string, v ...interface{})
- func Info(ctx context.Context, v ...interface{})
- func Infof(ctx context.Context, format string, v ...interface{})
- func NewGormLog(option ...GormLogOptions) logger.Interface
- func Warning(ctx context.Context, v ...interface{})
- func Warningf(ctx context.Context, format string, v ...interface{})
- type GormLogOptions
- type GormLogger
- func (gl GormLogger) Error(ctx context.Context, s string, v ...interface{})
- func (gl GormLogger) Info(ctx context.Context, s string, v ...interface{})
- func (gl GormLogger) LogMode(level logger.LogLevel) logger.Interface
- func (gl GormLogger) Trace(ctx context.Context, begin time.Time, ...)
- func (gl GormLogger) Warn(ctx context.Context, s string, v ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GormLogOptions ¶
type GormLogOptions func(*GormLogger)
func GormLogWithSlowThreshold ¶
func GormLogWithSlowThreshold(st time.Duration) GormLogOptions
GormLogWithSlowThreshold 慢查询
Click to show internal directories.
Click to hide internal directories.