|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.larsan.norna.service.log.Level
A log record level. Levels are given in order of ascending severity and is a s follows:
LOWEST LOWER LOW NEUTRAL HIGH HIGHER HIGHESTThe log implementation is free to arrange priority queues in order of the log level. Implementors are also free to extend this class with their own levels. The levels are sorted by ascending double values as follows:
LOWEST -3.0 LOWER -2.0 LOW -1.0 NEUTRAL 0.0 HIGH 1.0 HIGHER 2.0 HIGHEST 3.0A record level is not mandatory.
Record Filter| Field Summary | |
static Level |
HIGH
High severity, 1.0 |
static Level |
HIGHER
Second highest severiy, 2.0 |
static Level |
HIGHEST
Highest severity, 3.0 |
static Level |
LOW
Third lowest severity, -1.0 |
static Level |
LOWER
Second lowest severity, -2.0 |
static Level |
LOWEST
Lowest severity level, -3.0. |
static Level |
NEUTRAL
Neutral severity, 0.0 |
protected double |
severity
Level severity. |
| Constructor Summary | |
protected |
Level(double severity)
Create level. |
| Method Summary | |
int |
compareTo(java.lang.Object o)
Comparable implementation in descending order. |
boolean |
equals(java.lang.Object o)
Equality check on severity level |
double |
getSeverity()
Get severity level. |
int |
hashCode()
Hash code on severty level |
static Level |
parse(java.lang.String level)
Parse a string to a level. |
java.lang.String |
toString()
Get severity level as string. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final Level LOWEST
public static final Level LOWER
public static final Level LOW
public static final Level NEUTRAL
public static final Level HIGH
public static final Level HIGHER
public static final Level HIGHEST
protected double severity
| Constructor Detail |
protected Level(double severity)
severity - Level of severity| Method Detail |
public static Level parse(java.lang.String level)
level - String level to parse
public double getSeverity()
public java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparablepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||