package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Jun 27, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 9
Opens a new window with list of known importers.
Documentation
¶
New returns a new logger based on the logr interface and the zap logging library.
Sync flushes buffered logs.
Underlying returns the zap logger used as a logr sink.
func WithDebug(enabled bool) option
WithDebug configures the logger for development environments.
func WithLevel(level int) option
WithLevel defines the verbosity of the logger (0 is the least verbose).
func WithName(name string) option
WithName defines the name of the logger.
func WithVerbosity() option
WithVerbosity defines the V-level to 1.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.