Documentation ¶
Index ¶
- func NewQuickConsole(db *gorm.DB, r Runtime) error
- func QuickScope(r Runtime) func(db *gorm.DB) *gorm.DB
- type GormLogger
- func (l *GormLogger) Error(ctx context.Context, msg string, data ...interface{})
- func (l *GormLogger) Info(ctx context.Context, msg string, data ...interface{})
- func (l *GormLogger) LogMode(gormLogger.LogLevel) gormLogger.Interface
- func (l *GormLogger) Trace(ctx context.Context, begin time.Time, fc func() (string, int64), _err error)
- func (l *GormLogger) Warn(ctx context.Context, msg string, data ...interface{})
- type Runtime
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GormLogger ¶
func NewLogger ¶
func NewLogger( instanceName string, dbType string, logConfig loggerConfig.Config, ) *GormLogger
func (*GormLogger) Error ¶
func (l *GormLogger) Error( ctx context.Context, msg string, data ...interface{}, )
func (*GormLogger) Info ¶
func (l *GormLogger) Info( ctx context.Context, msg string, data ...interface{}, )
func (*GormLogger) LogMode ¶
func (l *GormLogger) LogMode(gormLogger.LogLevel) gormLogger.Interface
Click to show internal directories.
Click to hide internal directories.