package
module
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Jan 5, 2023
License: BSD-3-Clause
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
README
¶
kphuslog
kphuslog is a plug-in package to hook phuslu/log
into a kgo.Logger
To use,
cl, err := kgo.NewClient(
kgo.WithLogger(kphuslog.New(logger)),
// ...other opts
)
Documentation
¶
Package kphuslog provides a plug-in kgo.Logger wrapping zerolog.Logger for usage in
a kgo.Client.
This can be used like so:
cl, err := kgo.NewClient(
kgo.WithLogger(kphuslog.New(logger)),
// ...other opts
)
Logger provides the kgo.Logger interface for usage in kgo.WithLogger when
initializing a client.
New returns a new logger.
Level is for the kgo.Logger interface.
Log is for the kgo.Logger interface.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.