package
module
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Mar 14, 2023
License: BSD-3-Clause
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package klogr is a wrapper around logr.Logger.
Logger that wraps the logr.Logger.
New returns a new Logger.
Level returns the log level to log at.
Log using the underlying logr.Logger. If kgo.LogLevelError is set, keyvals
will be type checked for an error, and the first one found will be used.
Opt applies options to the logger.
LevelToV returns the logr V level that corresponds to the given
kgo.LogLevel.
By default, the kgo.LogLevel is just doubled -- error is 2, warn is 4, info
is 6, and debug is 8.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.