Documentation
¶
Index ¶
Constants ¶
View Source
const LoggingVerbosityEnvVar = "LOGGING_VERBOSITY"
LoggingVerbosityEnvVar is the name of the variable to configure the logging verbosity
Variables ¶
View Source
var (
Log logr.Logger
)
Functions ¶
func NewCliLogger ¶
NewCliLogger creates a new logger for cli usage. CLI usage means that by default: - the default dev config - encoding is console - timestamps are disabled (can be still activated by the cli flag) - level are color encoded
Types ¶
type Config ¶
type Config struct {
Development bool
Cli bool
Verbosity int
DisableStacktrace bool
DisableCaller bool
DisableTimestamp bool
// contains filtered or unexported fields
}
func (*Config) SetDisableCaller ¶
SetDisableCaller dis- or enables the caller according to the provided flag if the flag was provided
func (*Config) SetDisableStacktrace ¶
SetDisableStacktrace dis- or enables the stackstrace according to the provided flag if the flag was provided
func (*Config) SetTimestamp ¶
SetTimestamp dis- or enables the logging of timestamps according to the provided flag if the flag was provided
Click to show internal directories.
Click to hide internal directories.