Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 684 Bytes

README.md

File metadata and controls

19 lines (15 loc) · 684 Bytes

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.