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.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ALL | The ALL level provides all logging messages. | ||||||||||
CONFIG | The CONFIG level provides static configuration messages. | ||||||||||
FINE | The FINE level provides tracing messages. | ||||||||||
FINER | The FINER level provides more detailed tracing messages. | ||||||||||
FINEST | The FINEST level provides highly detailed tracing messages. | ||||||||||
INFO | The INFO level provides informative messages. | ||||||||||
OFF | The OFF level provides no logging messages. | ||||||||||
SEVERE | The SEVERE level provides severe failure messages. | ||||||||||
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 CONFIG level provides static configuration messages.
The FINER level provides more detailed tracing messages.
The FINEST level provides highly detailed tracing messages.
The SEVERE level provides severe failure messages.
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 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.