| 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 indicates a static configuration message. | |||||||||
| 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 indicates an informative message. | |||||||||
| Level | OFF | The OFF level provides no logging messages. | |||||||||
| Level | SEVERE | The SEVERE level indicates a severe failure. | |||||||||
| Level | WARNING | The WARNING level indicates a warning. | |||||||||
| Protected Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs an instance of
Level taking the supplied name
and level value. | |||||||||||
Constructs an instance of
Level taking the supplied name
and level value. | |||||||||||
| 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 indicates a static configuration message.
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 indicates an informative message.
The OFF level provides no logging messages.
The SEVERE level indicates a severe failure.
The WARNING level indicates a warning.
Constructs an instance of Level taking the supplied name
and level value.
| name | 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
and level value.
| name | 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 value.
| o | the other object to be compared with |
|---|
true if this object equals to the supplied object,
otherwise false
Gets the localized name of this level. The default locale is used. If no
resource bundle is associated with this Level, the
original level name is returned.
Gets the name of this Level.
Level
Gets the name of the resource bundle associated with this
Level.
Level
Returns the hash code of this Level object.
Level object
Gets the integer value indicating this Level.
Level
Parses a level name into a Level object.
| name | the name of the desired level, which cannot be null |
|---|
Level object with the specified name| NullPointerException | if name is null. |
|---|---|
| IllegalArgumentException | if name is not valid.
|
Returns the string representation of this Level object.
Usually this will include its name.
Level object