Documentation ¶
Index ¶
- type WrapEntry
- func (l *WrapEntry) Error(ctx context.Context, s string, args ...interface{})
- func (l *WrapEntry) Info(ctx context.Context, s string, args ...interface{})
- func (l *WrapEntry) LogMode(level gormLogger.LogLevel) gormLogger.Interface
- func (l *WrapEntry) Trace(ctx context.Context, begin time.Time, fc func() (string, int64), err error)
- func (l *WrapEntry) Warn(ctx context.Context, s string, args ...interface{})
- type WrapLogger
- func (l *WrapLogger) Error(ctx context.Context, s string, args ...interface{})
- func (l *WrapLogger) Info(ctx context.Context, s string, args ...interface{})
- func (l *WrapLogger) LogMode(level gormLogger.LogLevel) gormLogger.Interface
- func (l *WrapLogger) Trace(ctx context.Context, begin time.Time, fc func() (string, int64), err error)
- func (l *WrapLogger) 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 WrapEntry ¶ added in v0.0.2
type WrapEntry struct { SlowThreshold time.Duration SourceField string SkipErrRecordNotFound bool Debug bool // contains filtered or unexported fields }
func NewEntry ¶ added in v0.0.2
func NewEntry(entry *logrusLogger.Entry) *WrapEntry
func (*WrapEntry) LogMode ¶ added in v0.0.2
func (l *WrapEntry) LogMode(level gormLogger.LogLevel) gormLogger.Interface
type WrapLogger ¶
type WrapLogger struct { SlowThreshold time.Duration SourceField string SkipErrRecordNotFound bool Debug bool // contains filtered or unexported fields }
func NewLogger ¶ added in v0.0.2
func NewLogger(logger *logrusLogger.Logger) *WrapLogger
func (*WrapLogger) Error ¶
func (l *WrapLogger) Error(ctx context.Context, s string, args ...interface{})
func (*WrapLogger) Info ¶
func (l *WrapLogger) Info(ctx context.Context, s string, args ...interface{})
func (*WrapLogger) LogMode ¶
func (l *WrapLogger) LogMode(level gormLogger.LogLevel) gormLogger.Interface
Click to show internal directories.
Click to hide internal directories.