Skip to content

Latest commit

 

History

History
 
 

kzap

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

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.