Versions in this module Expand all Collapse all v0 v0.0.1 Apr 29, 2024 Changes in this version + func CommonError(err error) bool + func DebugCommonErr(e error, l zerolog.Logger) *zerolog.Event + func DefaultLogLevelMap(i logger.LogLevel) zerolog.Level + func Ignore(l zerolog.Logger) *zerolog.Event + func IgnoreCommonErr(e error, l zerolog.Logger) *zerolog.Event + func LogErrorAt(level func(zerolog.Logger) *zerolog.Event, cmpErr func(error) bool) func(error, zerolog.Logger) *zerolog.Event + func LogSource(keywords ...string) func(context.Context, *zerolog.Event) + func UseDebug(l zerolog.Logger) *zerolog.Event + func UseError(l zerolog.Logger) *zerolog.Event + func UseFatal(l zerolog.Logger) *zerolog.Event + func UseInfo(l zerolog.Logger) *zerolog.Event + func UseTrace(l zerolog.Logger) *zerolog.Event + func UseWarn(l zerolog.Logger) *zerolog.Event + func WithTimeTracking(i logger.LogLevel) zerolog.Level + type Config struct + AffectedRows string + Customize func(context.Context, *zerolog.Event) + DumpLevel func(zerolog.Logger) *zerolog.Event + DumpWithDuration bool + Duration string + ErrorLevel func(error, zerolog.Logger) *zerolog.Event + ParameterizedQueries bool + SQL string + SlowLevel func(zerolog.Logger) *zerolog.Event + SlowThreshold time.Duration + type Logger struct + func (l *Logger) Error(ctx context.Context, msg string, args ...any) + func (l *Logger) Info(ctx context.Context, msg string, args ...any) + func (l *Logger) LogMode(lv logger.LogLevel) logger.Interface + func (l *Logger) ParamsFilter(ctx context.Context, sql string, params ...interface{}) (string, []interface{}) + func (l *Logger) Trace(ctx context.Context, begin time.Time, f func() (string, int64), err error) + func (l *Logger) Warn(ctx context.Context, msg string, args ...any)