Documentation ¶
Index ¶
Constants ¶
View Source
const ( BaseCallDepth int = 2 // ErrorLevel limits logs to ERROR messages only ErrorLevel int = -1 // MaxInfoLevel allows ERROR, INFO, DEBUG and TRACE messages MaxInfoLevel int = 2 // MedInfoLevel allows ERROR, INFO, and DEBUG messages MedInfoLevel int = 1 // MinInfoLevel limits logs to ERROR and INFO messages MinInfoLevel int = 0 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct { // Structured enables structured logging Structured bool // Colors enables colors for unstructured logging only Colors bool // Writers defines which transports the logger should write to Writers []io.Writer // Level defines the logging verbosity; defaults to MinInfoLevel Level int }
Options allows the user to set various options for the logr.Logger implementation
Click to show internal directories.
Click to hide internal directories.