|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.larsan.norna.service.log.Type
Log record type. A type of a record toghether with it's severity can be used by the logging implementations to filter or prioritize the record.
A record type is not mandatory.
Level| Field Summary | |
static Type |
CONFIG
Configuration record type. |
static Type |
DEBUG
Debug record type. |
static Type |
ERROR
Error record type. |
static Type |
FAILURE
Failure record type. |
static Type |
INFO
A message type record. |
static Type |
TEST
Test record type. |
protected int |
type
Record type. |
static Type |
UNKNOWN
Unkown record type. |
| Constructor Summary | |
protected |
Type(int type)
Create type |
| Method Summary | |
boolean |
equals(java.lang.Object o)
Equality check on record type |
int |
getType()
Get record type. |
int |
hashCode()
Hash code on type |
static Type |
parse(java.lang.String type)
Parse a string to a type. |
java.lang.String |
toString()
Get type as string. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final Type INFO
public static final Type CONFIG
public static final Type DEBUG
public static final Type ERROR
public static final Type FAILURE
public static final Type TEST
public static final Type UNKNOWN
protected int type
| Constructor Detail |
protected Type(int type)
| Method Detail |
public static Type parse(java.lang.String type)
type - String type to parse
public int getType()
public java.lang.String toString()
toString in class java.lang.Objectpublic 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 | |||||||||