Documentation
¶
Index ¶
Constants ¶
View Source
const (
LogLevelEnv = "LOG_LEVEL"
)
Variables ¶
This section is empty.
Functions ¶
func LogBaseLoggerSettings ¶ added in v1.2.0
func LogBaseLoggerSettings()
func NewPrettyLogWriter ¶
func WithWriter ¶
Types ¶
type Logger ¶
func Get ¶
func Get() Logger
Get returns a new, unnamed logd configured with the basics we need for operator logs which can be used as a blueprint for derived loggers int the operator components.
func (*Logger) Debug ¶
Debug can be used for verbose output that is supposed to be valuable for troubleshooting
func (Logger) WithValues ¶
func (*Logger) Write ¶ added in v1.7.0
Write is for implementing the io.Writer interface, this is meant to be used to pipe (using `log.SetOutput`) the logs from the stdlib's log library which we do not use directly this workaround is necessary because the Webhook starts an http.Server, where we can't set the logger directly.
Click to show internal directories.
Click to hide internal directories.