logger: add compat option name
Some checks failed
coverage / build (push) Failing after 2s
test / test (push) Failing after 0s

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2026-02-03 11:57:56 +03:00
parent 1511423ff2
commit 3a3024c05f
3 changed files with 12 additions and 6 deletions

View File

@@ -91,6 +91,12 @@ func WithCallerEnabled(b bool) Option {
}
}
func WithAddCaller(b bool) Option {
return func(o *Options) {
o.AddCaller = b
}
}
// WithFatalFinalizers set logger.Fatal finalizers
func WithFatalFinalizers(fncs ...func(context.Context)) Option {
return func(o *Options) {