Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PredefinedLevels = []string{
"OFF",
"ERROR",
"WARN",
"INFO",
"DEBUG",
"TRACE",
}
PredefinedLevels contains an array with the possible logger levels
Functions ¶
func IsValidLevel ¶
IsValidLevel checks if the provided level is valid or not
Types ¶
type ActuatorData ¶
ActuatorData is the top structure to manage actuators and their levels
type LoggerLevel ¶
type LoggerLevel struct { ConfiguredLevel string `json:"configuredLevel"` EffectiveLevel string `json:"effectiveLevel"` }
LoggerLevel encapsulate the levels of a logger
type Loggers ¶
type Loggers map[string]LoggerLevel
Loggers contains a map between loggers and their levels
func (Loggers) GetSortedLoggerNames ¶
GetSortedLoggerNames gets a list of the loggers sorted alphabetically
func (Loggers) PrettyPrint ¶
PrettyPrint returns a pretty representation of a list of Loggers
Click to show internal directories.
Click to hide internal directories.