Documentation ¶
Index ¶
- Variables
- type ContextInfoGetterFn
- type Logger
- func (l Logger) Error(ctx context.Context, str string, args ...interface{})
- func (l Logger) Info(ctx context.Context, str string, args ...interface{})
- func (l Logger) LogMode(level gorm_logger.LogLevel) gorm_logger.Interface
- func (l Logger) SetAsDefault()
- func (l Logger) Trace(ctx context.Context, begin time.Time, fc func() (string, int64), err error)
- func (l Logger) Warn(ctx context.Context, str string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Info = gorm_logger.Info Warn = gorm_logger.Warn Error = gorm_logger.Error Silent = gorm_logger.Silent )
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct { LogLevel gorm_logger.LogLevel SlowThreshold time.Duration SkipCallerLookup bool IgnoreRecordNotFoundError bool ContextInfoGetter ContextInfoGetterFn }
func (Logger) LogMode ¶
func (l Logger) LogMode(level gorm_logger.LogLevel) gorm_logger.Interface
func (Logger) SetAsDefault ¶
func (l Logger) SetAsDefault()
Click to show internal directories.
Click to hide internal directories.