Documentation
¶
Index ¶
- type GormLogger
- type Logger
- func (l *Logger) Error(ctx context.Context, s string, i ...interface{})
- func (l *Logger) IgnoreRecordNotFoundError(ignore bool) GormLogger
- func (l *Logger) Info(ctx context.Context, s string, i ...interface{})
- func (l *Logger) LogMode(level logger.LogLevel) logger.Interface
- func (l *Logger) SlowThreshold(threshold time.Duration) GormLogger
- func (l *Logger) Trace(ctx context.Context, begin time.Time, fc func() (string, int64), err error)
- func (l *Logger) Warn(ctx context.Context, s string, i ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GormLogger ¶
type GormLogger interface {
logger.Interface
IgnoreRecordNotFoundError(bool) GormLogger
SlowThreshold(time.Duration) GormLogger
}
func New ¶
func New(ll logr.Logger) GormLogger
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) IgnoreRecordNotFoundError ¶
func (l *Logger) IgnoreRecordNotFoundError(ignore bool) GormLogger
func (*Logger) SlowThreshold ¶
func (l *Logger) SlowThreshold(threshold time.Duration) GormLogger
Click to show internal directories.
Click to hide internal directories.