Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsJSON ¶ added in v1.15.1
AsJSON returns a new stringer object that delays marshaling until the String method is called. For logging at higher verbosity levels, to avoid formatting when the output isn't going to be used.
func HandleError ¶
HandleError prints the error to the standard error, prints the usage if the `printUsage` flag is true, exports the error to the error file and exits the process with the exit code.
Types ¶
type Logger ¶
Logger embeds logr.Logger
func (*Logger) DeleteErrorFile ¶
func (l *Logger) DeleteErrorFile()
DeleteErrorFile deletes the error file.
func (*Logger) ExportError ¶
ExportError exports the error to the error file if --export-error is enabled.
Click to show internal directories.
Click to hide internal directories.