|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.antelmann.util.logging.Level
public class Level
Level classifies the logging of LogEntry objects. The implementation is inspired by java.util.logging, but simpler.
LogEntry,
Logger,
Serialized Form| Field Summary | |
|---|---|
static Level |
ALERT
|
static Level |
BEGIN
|
static Level |
COMMENT
|
static Level |
CONFIG
|
static Level |
DEBUG
|
static Level |
DEFAULT
used when no other level was given; corresponds to NORMAL |
static Level |
END
|
static Level |
ERROR
|
static Level |
EXCEPTION
|
static Level |
FAILURE
|
static Level |
FINE
|
static Level |
FINER
|
static Level |
FINEST
|
static Level |
IMPORTANT
|
static Level |
INFO
|
static Level |
NORMAL
|
static Level |
SEVERE
|
static Level |
SUCCESS
|
static Level |
WARNING
|
| Constructor Summary | |
|---|---|
protected |
Level(String text,
int compareValue)
|
| Method Summary | |
|---|---|
int |
compareTo(Level l)
provides a simple way to order Levels by their assumed importance. |
boolean |
equals(Object obj)
|
static Level |
forName(String name)
returns the level corresponding to the given name. |
int |
getImportance()
returns the value the natural order is based on |
static Level[] |
getKnownLevels()
|
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Level DEFAULT
NORMAL
public static final Level NORMAL
public static final Level CONFIG
public static final Level BEGIN
public static final Level END
public static final Level SUCCESS
public static final Level FAILURE
public static final Level DEBUG
public static final Level EXCEPTION
public static final Level FINE
public static final Level FINER
public static final Level FINEST
public static final Level INFO
public static final Level ERROR
public static final Level SEVERE
public static final Level WARNING
public static final Level IMPORTANT
public static final Level COMMENT
public static final Level ALERT
| Constructor Detail |
|---|
protected Level(String text,
int compareValue)
text - must not be null| Method Detail |
|---|
public static Level[] getKnownLevels()
public static Level forName(String name)
public int getImportance()
public int compareTo(Level l)
compareTo in interface Comparable<Level>public boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Objectpublic int hashCode()
hashCode in class Object
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||