|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.logging.Level
public class 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.
| Field Summary | |
|---|---|
static Level |
ALL
The ALL level provides all logging messages. |
static Level |
CONFIG
The CONFIG level indicates a static configuration message. |
static Level |
FINE
The FINE level provides tracing messages. |
static Level |
FINER
The FINER level provides more detailed tracing messages. |
static Level |
FINEST
The FINEST level provides highly detailed tracing messages. |
static Level |
INFO
The INFO level indicates an informative message. |
static Level |
OFF
The OFF level provides no logging messages. |
static Level |
SEVERE
The SEVERE level indicates a severe failure. |
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 | |
|---|---|
boolean |
equals(Object o)
Compares two Level objects for equality. |
String |
getLocalizedName()
Gets the localized name of this level. |
String |
getName()
Gets the name of this Level. |
String |
getResourceBundleName()
Gets the name of the resource bundle associated with this Level. |
int |
hashCode()
Returns the hash code of this Level object. |
int |
intValue()
Gets the integer value indicating this Level. |
static Level |
parse(String name)
Parses a level name into a Level object. |
String |
toString()
Returns the string representation of this Level object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Level OFF
public static final Level SEVERE
public static final Level WARNING
public static final Level INFO
public static final Level CONFIG
public static final Level FINE
public static final Level FINER
public static final Level FINEST
public static final Level ALL
| Constructor Detail |
|---|
protected Level(String name,
int level)
Level taking the supplied name
and level value.
name - name of the levellevel - an integer value indicating the level
NullPointerException - if name is null.
protected Level(String name,
int level,
String resourceBundleName)
Level taking the supplied name
and level value.
name - name of the levellevel - an integer value indicating the levelresourceBundleName - the name of the resource bundle to use
NullPointerException - if name is null.| Method Detail |
|---|
public static final Level parse(String name)
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.public String getName()
Level.
Levelpublic String getResourceBundleName()
Level.
Levelpublic final int intValue()
Level.
Levelpublic String getLocalizedName()
Level, the
original level name is returned.
public boolean equals(Object o)
Level objects for equality. They are
considered to be equal if they have the same value.
equals in class Objecto - the other object to be compared with
true if this object equals to the supplied object,
otherwise falseObject.hashCode()public int hashCode()
Level object.
hashCode in class ObjectLevel objectObject.equals(java.lang.Object)public final String toString()
Level object.
Usually this will include its name.
toString in class ObjectLevel object
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||