Package net.ssehub.easy.basics.logger
Enum LoggingLevel
- java.lang.Object
-
- java.lang.Enum<LoggingLevel>
-
- net.ssehub.easy.basics.logger.LoggingLevel
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<LoggingLevel>
public enum LoggingLevel extends java.lang.Enum<LoggingLevel>
ENUM for ILogger Logging Level. Is used to declare what type off messages should be logged. Clients should normally use the predefined Level constants such as DEBUG.The levels in descending order are:
- ERROR (highest value)
- WARNING
- INFO
- DEBUG (lowest value)
In addition there is a level OFF that can be used to turn off logging.
- Author:
- Sass
-
-
Constructor Summary
Constructors Modifier Constructor Description privateLoggingLevel()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LoggingLevelvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static LoggingLevel[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEBUG
public static final LoggingLevel DEBUG
-
INFO
public static final LoggingLevel INFO
-
WARN
public static final LoggingLevel WARN
-
ERROR
public static final LoggingLevel ERROR
-
OFF
public static final LoggingLevel OFF
-
-
Method Detail
-
values
public static LoggingLevel[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LoggingLevel c : LoggingLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LoggingLevel valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-