Package adalid.commons.enums
Enum LoggingLevel
- java.lang.Object
-
- java.lang.Enum<LoggingLevel>
-
- adalid.commons.enums.LoggingLevel
-
- All Implemented Interfaces:
Serializable,Comparable<LoggingLevel>
public enum LoggingLevel extends Enum<LoggingLevel>
- Author:
- Jorge Campins
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.log4j.LevelgetLevel()static LoggingLevelgetLoggingLevel(org.apache.log4j.Level level)static LoggingLevelvalueOf(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
-
OFF
public static final LoggingLevel OFF
-
TRACE
public static final LoggingLevel TRACE
-
DEBUG
public static final LoggingLevel DEBUG
-
INFO
public static final LoggingLevel INFO
-
WARN
public static final LoggingLevel WARN
-
ERROR
public static final LoggingLevel ERROR
-
FATAL
public static final LoggingLevel FATAL
-
ALL
public static final LoggingLevel ALL
-
-
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(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getLevel
public org.apache.log4j.Level getLevel()
-
getLoggingLevel
public static LoggingLevel getLoggingLevel(org.apache.log4j.Level level)
-
-