Package net.solarnetwork.node.service
Enum Class LoggingService.Level
- All Implemented Interfaces:
Serializable,Comparable<LoggingService.Level>,Constable
- Enclosing interface:
LoggingService
Standard enumeration of supported logging levels, or verbosity.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe 2nd highest level of verbosity for debugging messages.The most urgent level of verbosity for error conditions.A "default" level of verbosity for informational messages.Inherit the level of a "parent" logger.No logging at all.The highest level of verbosity for tracing messages.The 2nd most urgent level of verbosity for potential problems. -
Method Summary
Modifier and TypeMethodDescriptionstatic final LoggingService.LevelGet a level for a case-insensitive level name.static LoggingService.LevelReturns the enum constant of this class with the specified name.static LoggingService.Level[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INHERIT
Inherit the level of a "parent" logger. -
TRACE
The highest level of verbosity for tracing messages. -
DEBUG
The 2nd highest level of verbosity for debugging messages. -
INFO
A "default" level of verbosity for informational messages. -
WARN
The 2nd most urgent level of verbosity for potential problems. -
ERROR
The most urgent level of verbosity for error conditions. -
OFF
No logging at all.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
forName
Get a level for a case-insensitive level name.- Parameters:
name- the name of the level to get- Returns:
- the level
- Throws:
IllegalArgumentException- ifnameis not valid
-