package
Version:
v0.6.0
Opens a new window with list of versions in this module.
Published: Oct 13, 2021
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Encoder is an enum for the log encoders.
const (
EncoderConsole Encoder = "console"
EncoderJSON Encoder = "json"
)
type Logger struct {
Encoder string
}
Logger is a wrapper for the log encoder.
New returns a new logger with console encoder as the default.
AddFlags adds flags for the logger.
Get returns a new logr.Logger according to the encoder.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.