| Name | Description |
|---|---|
OFF |
No events will be logged. |
FATAL |
A fatal event that will prevent the application from continuing. |
ERROR |
An error in the application, possibly recoverable. |
WARN |
An event that might possible lead to an error. |
INFO |
An event for informational purposes. |
DEBUG |
A general debugging event. |
TRACE |
A fine-grained debug message, typically capturing the flow through the application. |
ALL |
All events should be logged. |
Typically, configuring a level in a filter or on a logger will cause logging events of that level and those that are
more specific to pass through the filter. A special level, ALL, is guaranteed to capture all levels when
used in logging configurations.
| Modifier and Type | Field and Description |
|---|---|
| public static final Level | ALL
All events should be logged. |
| public static final String | CATEGORY
Category to be used by custom levels. |
| public static final Level | DEBUG
A general debugging event. |
| private static final Level[] | |
| public static final Level | ERROR
An error in the application, possibly recoverable. |
| public static final Level | FATAL
A fatal event that will prevent the application from continuing. |
| public static final Level | INFO
An event for informational purposes. |
| private final int | |
| private static final ConcurrentMap | |
| private final String | |
| public static final Level | OFF
No events will be logged. |
| private static final long | |
| private final StandardLevel | |
| public static final Level | TRACE
A fine-grained debug message, typically capturing the flow through the application. |
| public static final Level | WARN
An event that might possible lead to an error. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Level | |
| public int | compareTo(final Level
the object to be compared. other)Implements java. Compares this object with the specified object for order. |
| public boolean | equals(final Object
the reference object with which to compare. other)Overrides java. Indicates whether some other object is "equal to" this one. |
| public static Level | |
| public Class | |
| public static Level | |
| public StandardLevel | Returns: an enum of the standard Levels.Gets the standard Level values as an enum. |
| public int | |
| public int | |
| public boolean | |
| public boolean | Returns: True if this level Level is less specific or the same as the given Level.The level to test. level)Compares this level against the level passed as an argument and returns true if this level is the same or is less specific. |
| public boolean | Returns: True if this level Level is more specific or the same as the given Level.The level to test. level)Compares this level against the level passed as an argument and returns true if this level is the same or is more specific. |
| public String | |
| private Object | |
| public static Level | |
| public static Level | |
| public String | |
| public static Level | |
| public static < The enum type whose constant is to be returned T extends Enum | Returns: the enum constant of the specified enum type with the specified namethe enumType, final String Class object of the enum type from which to return a constantthe name of the constant to return name)Returns the enum constant of the specified enum type with the specified name. |
| public static Level[] |
| ALL | back to summary |
|---|---|
| public static final Level ALL All events should be logged. | |
| CATEGORY | back to summary |
|---|---|
| public static final String CATEGORY Category to be used by custom levels.
| |
| DEBUG | back to summary |
|---|---|
| public static final Level DEBUG A general debugging event. | |
| EMPTY_ARRAY | back to summary |
|---|---|
| private static final Level[] EMPTY_ARRAY | |
| ERROR | back to summary |
|---|---|
| public static final Level ERROR An error in the application, possibly recoverable. | |
| FATAL | back to summary |
|---|---|
| public static final Level FATAL A fatal event that will prevent the application from continuing. | |
| INFO | back to summary |
|---|---|
| public static final Level INFO An event for informational purposes. | |
| intLevel | back to summary |
|---|---|
| private final int intLevel | |
| LEVELS | back to summary |
|---|---|
| private static final ConcurrentMap<String, Level> LEVELS | |
| name | back to summary |
|---|---|
| private final String name | |
| OFF | back to summary |
|---|---|
| public static final Level OFF No events will be logged. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| standardLevel | back to summary |
|---|---|
| private final StandardLevel standardLevel | |
| TRACE | back to summary |
|---|---|
| public static final Level TRACE A fine-grained debug message, typically capturing the flow through the application. | |
| WARN | back to summary |
|---|---|
| public static final Level WARN An event that might possible lead to an error. | |
| Level | back to summary |
|---|---|
| private Level(final String name, final int intLevel) | |
| clone | back to summary |
|---|---|
| public Level clone() throws CloneNotSupportedException Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| compareTo | back to summary |
|---|---|
| public int compareTo(final Level other) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that | |
| equals | back to summary |
|---|---|
| public boolean equals(final Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| forName | back to summary |
|---|---|
| public static Level forName(final String name, final int intValue) Retrieves an existing Level or creates on if it didn't previously exist.
| |
| getDeclaringClass | back to summary |
|---|---|
| public Class | |
| getLevel | back to summary |
|---|---|
| public static Level getLevel(final String name) Return the Level associated with the name or null if the Level cannot be found.
| |
| getStandardLevel | back to summary |
|---|---|
| public StandardLevel getStandardLevel() Gets the standard Level values as an enum.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| intLevel | back to summary |
|---|---|
| public int intLevel() Gets the integral value of this Level.
| |
| isInRange | back to summary |
|---|---|
| public boolean isInRange(final Level minLevel, final Level maxLevel) Compares this level against the levels passed as arguments and returns true if this level is in between the given levels. | |
| isLessSpecificThan | back to summary |
|---|---|
| public boolean isLessSpecificThan(final Level level) Compares this level against the level passed as an argument and returns true if this level is the same or is less specific.
Concretely,
| |
| isMoreSpecificThan | back to summary |
|---|---|
| public boolean isMoreSpecificThan(final Level level) Compares this level against the level passed as an argument and returns true if this level is the same or is more specific.
Concretely,
| |
| name | back to summary |
|---|---|
| public String name() Gets the symbolic name of this Level. Equivalent to calling
| |
| readResolve | back to summary |
|---|---|
| private Object readResolve() | |
| toLevel | back to summary |
|---|---|
| public static Level toLevel(final String level) Converts the string passed as argument to a level. If the conversion fails, then this method returns
| |
| toLevel | back to summary |
|---|---|
| public static Level toLevel(final String name, final Level defaultLevel) Converts the string passed as argument to a level. If the conversion fails, then this method returns the value of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| valueOf | back to summary |
|---|---|
| public static Level valueOf(final String name) Return the Level associated with the name.
| |
| valueOf | back to summary |
|---|---|
| public static <T extends Enum Returns the enum constant of the specified enum type with the specified name. The name must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
| |
| values | back to summary |
|---|---|
| public static Level[] values() Return an array of all the Levels that have been registered.
| |