Documentation ¶
Index ¶
- type LogWrapper
- func (l LogWrapper) Error(_ context.Context, msg string, args ...interface{})
- func (l LogWrapper) Info(_ context.Context, msg string, args ...interface{})
- func (l LogWrapper) LogMode(level logger.LogLevel) logger.Interface
- func (l LogWrapper) Trace(ctx context.Context, begin time.Time, fc func() (string, int64), err error)
- func (l LogWrapper) Warn(_ context.Context, msg string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogWrapper ¶
type LogWrapper struct { IgnoreRecordNotFoundError bool SlowThreshold time.Duration SilenceQueries bool // contains filtered or unexported fields }
func NewLogger ¶
func NewLogger() LogWrapper
func (LogWrapper) Error ¶
func (l LogWrapper) Error(_ context.Context, msg string, args ...interface{})
func (LogWrapper) Info ¶
func (l LogWrapper) Info(_ context.Context, msg string, args ...interface{})
Click to show internal directories.
Click to hide internal directories.