diff --git a/logger/options.go b/logger/options.go index 4d083d81..3138892d 100644 --- a/logger/options.go +++ b/logger/options.go @@ -182,3 +182,10 @@ func WithMicroKeys() Option { o.ErrorKey = "error" } } + +// WithAddCallerSkipCount add skip count for copy logger +func WithAddCallerSkipCount(n int) Option { + return func(o *Options) { + o.CallerSkipCount += n + } +}