From 8576a81d548e06678d43bb328d96e6e39aaf8473 Mon Sep 17 00:00:00 2001 From: Gorbunov Kirill Andreevich Date: Sun, 14 Apr 2024 17:13:39 +0300 Subject: [PATCH] #335 caller skip count. --- logger/options.go | 6 ++++++ 1 file changed, 6 insertions(+) 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 + } +}