org.fusesource.web.console.client.common
Enum LogLevel
java.lang.Object
java.lang.Enum<LogLevel>
org.fusesource.web.console.client.common.LogLevel
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<LogLevel>
public enum LogLevel
- extends java.lang.Enum<LogLevel>
Represents the logging level
- Version:
- $Revision: 1.1 $
|
Method Summary |
boolean |
matches(LogLevel that)
Returns true if this filter matches the given value. |
static LogLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static LogLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they're declared. |
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
OFF
public static final LogLevel OFF
ALL
public static final LogLevel ALL
TRACE
public static final LogLevel TRACE
DEBUG
public static final LogLevel DEBUG
INFO
public static final LogLevel INFO
WARN
public static final LogLevel WARN
ERROR
public static final LogLevel ERROR
FATAL
public static final LogLevel FATAL
values
public static final LogLevel[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(LogLevel c : LogLevel.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static LogLevel 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 name
matches
public boolean matches(LogLevel that)
- Returns true if this filter matches the given value. i.e.
if the given value's ordinal value is greater than or equal to this ordinal.
So if this value is
INFO then calling this method with ERROR
would return true whereas with DEBUG it would return false
Copyright © 2009 FuseSource. All Rights Reserved.