Documentation ¶
Index ¶
- type Logger
- func (l *Logger) Error(ctx context.Context, s string, args ...interface{})
- func (l *Logger) Info(ctx context.Context, s string, args ...interface{})
- func (l *Logger) LogMode(gormlogger.LogLevel) gormlogger.Interface
- 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, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct { SlowThreshold time.Duration SourceField string SkipErrRecordNotFound bool Debug bool // contains filtered or unexported fields }
Logger is a Gorm Logger that logs to Logrus
from https://github.com/onrik/gorm-logrus modified: add func Use
func (*Logger) LogMode ¶
func (l *Logger) LogMode(gormlogger.LogLevel) gormlogger.Interface
Click to show internal directories.
Click to hide internal directories.