java.lang.Object | |
↳ | java.util.logging.Level |
Level
objects are used to indicate the level of logging. There are a
set of predefined logging levels, each associated with an integer value.
Enabling a certain logging level also enables all logging levels with larger
values.
The predefined levels in ascending order are FINEST, FINER, FINE, CONFIG, INFO, WARNING, SEVERE. There are two additional predefined levels, which are ALL and OFF. ALL indicates logging all messages, and OFF indicates logging no messages.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Level | ALL | The ALL level provides all logging messages. | |||||||||
Level | CONFIG | The CONFIG level provides static configuration messages. | |||||||||
Level | FINE | The FINE level provides tracing messages. | |||||||||
Level | FINER | The FINER level provides more detailed tracing messages. | |||||||||
Level | FINEST | The FINEST level provides highly detailed tracing messages. | |||||||||
Level | INFO | The INFO level provides informative messages. | |||||||||
Level | OFF | The OFF level provides no logging messages. | |||||||||
Level | SEVERE | The SEVERE level provides severe failure messages. | |||||||||
Level | WARNING | The WARNING level provides warnings. |
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs an instance of
Level taking the supplied name and
level value. | |||||||||||
Constructs an instance of
Level taking the supplied name, level
value and resource bundle name. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Compares two
Level objects for equality. | |||||||||||
Gets the localized name of this level.
| |||||||||||
Gets the name of this level.
| |||||||||||
Gets the name of the resource bundle associated with this level.
| |||||||||||
Returns the hash code of this
Level object. | |||||||||||
Gets the integer value indicating this level.
| |||||||||||
Parses a level name into a
Level object. | |||||||||||
Returns the string representation of this
Level object. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
|
The ALL level provides all logging messages.
The CONFIG level provides static configuration messages.
The FINE level provides tracing messages.
The FINER level provides more detailed tracing messages.
The FINEST level provides highly detailed tracing messages.
The INFO level provides informative messages.
The OFF level provides no logging messages.
The SEVERE level provides severe failure messages.
The WARNING level provides warnings.
Constructs an instance of Level
taking the supplied name and
level value.
name | the name of the level. |
---|---|
level | an integer value indicating the level. |
NullPointerException | if name is null . |
---|
Constructs an instance of Level
taking the supplied name, level
value and resource bundle name.
name | the name of the level. |
---|---|
level | an integer value indicating the level. |
resourceBundleName | the name of the resource bundle to use. |
NullPointerException | if name is null . |
---|
Compares two Level
objects for equality. They are considered to
be equal if they have the same level value.
o | the other object to compare this level to. |
---|
true
if this object equals to the supplied object,
false
otherwise.Gets the localized name of this level. The default locale is used. If no resource bundle is associated with this level then the original level name is returned.
Gets the name of this level.
Gets the name of the resource bundle associated with this level.
Returns the hash code of this Level
object.
Gets the integer value indicating this level.
Parses a level name into a Level
object.
name | the name of the desired level , which cannot be
null . |
---|
NullPointerException | if name is null . |
---|---|
IllegalArgumentException | if name is not valid. |
Returns the string representation of this Level
object. In
this case, it is the level's name.