Versions in this module Expand all Collapse all v0 v0.2.0 Jun 23, 2024 Changes in this version + type Config struct + LogLevel gormLogger.LogLevel + ModuleName string + SkipErrRecordNotFound bool + SlowThreshold time.Duration + SourceField string + type Logger struct + func New(l *logrus.Logger, config Config) *Logger + func (l *Logger) Error(ctx context.Context, s string, args ...interface{}) + func (l *Logger) GetLogger() *logrus.Logger + func (l *Logger) Info(ctx context.Context, s string, args ...interface{}) + func (l *Logger) LogMode(level 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{})