Package org.apache.camel
Enum LoggingLevel
- java.lang.Object
-
- java.lang.Enum<LoggingLevel>
-
- org.apache.camel.LoggingLevel
-
- All Implemented Interfaces:
Serializable
,Comparable<LoggingLevel>
public enum LoggingLevel extends Enum<LoggingLevel>
Used to configure the logging levels
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isEnabled(LoggingLevel level)
Is the given logging level equal or higher than the current level.static LoggingLevel
valueOf(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
-
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
-
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(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
-
isEnabled
public boolean isEnabled(LoggingLevel level)
Is the given logging level equal or higher than the current level.
-
-