| java.lang.Object java.util.logging.Level
Level | public class Level implements Serializable(Code) | | 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.
|
Field Summary | |
final public static Level | ALL The ALL level provides all logging messages. | final public static Level | CONFIG The CONFIG level indicates a static configuration message. | final public static Level | FINE The FINE level provides tracing messages. | final public static Level | FINER The FINER level provides more detailed tracing messages. | final public static Level | FINEST The FINEST level provides highly detailed tracing messages. | final public static Level | INFO The INFO level indicates an informative message. | final public static Level | OFF The OFF level provides no logging messages. | final public static Level | SEVERE The SEVERE level indicates a severe failure. | final public static Level | WARNING The WARNING level indicates a warning. |
Constructor Summary | |
protected | Level(String name, int level) Constructs an instance of Level taking the supplied name
and level value. | protected | Level(String name, int level, String resourceBundleName) Constructs an instance of Level taking the supplied name
and level value. |
Method Summary | |
public boolean | equals(Object o) Compares two Level objects for equality. | public String | getLocalizedName() Gets the localized name of this level. | public String | getName() Gets the name of this Level . | public String | getResourceBundleName() Gets the name of the resource bundle associated with this
Level . | public int | hashCode() Returns the hash code of this Level object. | final public int | intValue() Gets the integer value indicating this Level . | public static Level | parse(String name) Parses a level name into a Level object. | final public String | toString() Returns the string representation of this Level object. |
ALL | final public static Level ALL(Code) | | The ALL level provides all logging messages.
|
CONFIG | final public static Level CONFIG(Code) | | The CONFIG level indicates a static configuration message.
|
FINE | final public static Level FINE(Code) | | The FINE level provides tracing messages.
|
FINER | final public static Level FINER(Code) | | The FINER level provides more detailed tracing messages.
|
FINEST | final public static Level FINEST(Code) | | The FINEST level provides highly detailed tracing messages.
|
INFO | final public static Level INFO(Code) | | The INFO level indicates an informative message.
|
OFF | final public static Level OFF(Code) | | The OFF level provides no logging messages.
|
SEVERE | final public static Level SEVERE(Code) | | The SEVERE level indicates a severe failure.
|
WARNING | final public static Level WARNING(Code) | | The WARNING level indicates a warning.
|
Level | protected Level(String name, int level)(Code) | | Constructs an instance of Level taking the supplied name
and level value.
Parameters: name - name of the level Parameters: level - an integer value indicating the level throws: NullPointerException - if name is null . |
Level | protected Level(String name, int level, String resourceBundleName)(Code) | | Constructs an instance of Level taking the supplied name
and level value.
Parameters: name - name of the level Parameters: level - an integer value indicating the level Parameters: resourceBundleName - the name of the resource bundle to use throws: NullPointerException - if name is null . |
equals | public boolean equals(Object o)(Code) | | Compares two Level objects for equality. They are
considered to be equal if they have the same value.
Parameters: o - the other object to be compared with true if this object equals to the supplied object,otherwise false |
getLocalizedName | public String getLocalizedName()(Code) | | 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.
the localized name of this level |
getName | public String getName()(Code) | | Gets the name of this Level .
the name of this Level |
getResourceBundleName | public String getResourceBundleName()(Code) | | Gets the name of the resource bundle associated with this
Level .
the name of the resource bundle associated with thisLevel |
hashCode | public int hashCode()(Code) | | Returns the hash code of this Level object.
the hash code of this Level object |
intValue | final public int intValue()(Code) | | Gets the integer value indicating this Level .
the integer value indicating this Level |
toString | final public String toString()(Code) | | Returns the string representation of this Level object.
Usually this will include its name.
the string representation of this Level object |
|
|