Package org.apache.mina.filter.logging
Enum LogLevel
- All Implemented Interfaces:
Serializable,Comparable<LogLevel>
Defines a logging level.
- See Also:
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionLogLevelwhich logs messages on the DEBUG level.LogLevelwhich logs messages on the ERROR level.LogLevelwhich logs messages on the INFO level.LogLevelwhich will not log any informationLogLevelwhich logs messages on the TRACE level.LogLevelwhich logs messages on the WARN level. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intThe internal numeric value associated with the log level -
Constructor Summary
Constructors -
Method Summary
-
Enum Constant Details
-
TRACE
LogLevelwhich logs messages on the TRACE level. -
DEBUG
LogLevelwhich logs messages on the DEBUG level. -
INFO
LogLevelwhich logs messages on the INFO level. -
WARN
LogLevelwhich logs messages on the WARN level. -
ERROR
LogLevelwhich logs messages on the ERROR level. -
NONE
LogLevelwhich will not log any information
-
-
Field Details
-
level
private int levelThe internal numeric value associated with the log level
-
-
Constructor Details
-
LogLevel
private LogLevel(int level) Create a new instance of a LogLevel.- Parameters:
level- The log level
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 int getLevel()- Returns:
- The numeric value associated with the log level
-