diff --git a/logger/options.go b/logger/options.go index 7ea04e74..895583ff 100644 --- a/logger/options.go +++ b/logger/options.go @@ -81,3 +81,9 @@ func WithName(n string) Option { o.Name = n } } + +func WithIncCallerSkipCount(n int) Option { + return func(o *Options) { + o.CallerSkipCount += n + } +}