Co-authored-by: Gorbunov Kirill Andreevich <kgorbunov@mtsbank.ru> Reviewed-on: #337 Co-authored-by: Кирилл Горбунов <kirya_gorbunov_2015@mail.ru> Co-committed-by: Кирилл Горбунов <kirya_gorbunov_2015@mail.ru>
This commit is contained in:
parent
7b7cf18a65
commit
c3de003e4a
@ -182,3 +182,10 @@ func WithMicroKeys() Option {
|
|||||||
o.ErrorKey = "error"
|
o.ErrorKey = "error"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// WithAddCallerSkipCount add skip count for copy logger
|
||||||
|
func WithAddCallerSkipCount(n int) Option {
|
||||||
|
return func(o *Options) {
|
||||||
|
o.CallerSkipCount += n
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user