mirror of
https://github.com/hanzoai/traces.git
synced 2026-10-30 18:20:41 +00:00
* chore: upgrade otel dependencies to version v0.129.0 * remove unused mocks * fix linting * add source headers * remove formatting
kzap
kzap is a plug-in package to hook Uber's zap
into a kgo.Logger
To use,
cl, err := kgo.NewClient(
kgo.WithLogger(kzap.New(zapLogger)),
// ...other opts
)
By default, the logger chooses the highest level possible that is enabled on
the zap logger, and then sticks with that level forever. A variable level
can be chosen by specifying the LevelFn option. See the documentation on
Level or LevelFn for more info.