|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttuwien.auto.calimero.log.LogLevel
public class LogLevel
Defines different log levels.
Defines several severity levels used to categorize logging information and loggers. It also gives a clue about the chattiness of the respective object.
Field Summary | |
---|---|
static LogLevel |
ALL
The highest log level, no restrictions, everything will be logged. |
static LogLevel |
ERROR
This level identifies the attached object for errors purposes. |
static LogLevel |
FATAL
This level identifies the attached object for fatal errors purposes. |
static LogLevel |
INFO
This level identifies the attached object for informational purposes. |
static LogLevel |
OFF
The lowest log level, logging is turned off. |
static LogLevel |
TRACE
This level identifies the attached object for tracing purposes. |
static LogLevel |
WARN
This level identifies the attached object for warning purposes. |
Constructor Summary | |
---|---|
protected |
LogLevel(int logLevel)
Creates a new LogLevel object with logLevel assigned to it. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Compares the log level with obj . |
int |
hashCode()
|
boolean |
higher(LogLevel l)
Compares for a higher log level than l . |
java.lang.String |
toString()
Returns the log level in textual format, like "off", "trace", . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final LogLevel ALL
public static final LogLevel ERROR
public static final LogLevel FATAL
public static final LogLevel INFO
public static final LogLevel OFF
public static final LogLevel TRACE
public static final LogLevel WARN
Constructor Detail |
---|
protected LogLevel(int logLevel)
logLevel
assigned to it.
logLevel
- log level represented by this objectMethod Detail |
---|
public boolean equals(java.lang.Object obj)
obj
.
equals
in class java.lang.Object
obj
-
true
if o
is of type
LogLevel
and has the same log level as this object,
false
otherwise.public int hashCode()
hashCode
in class java.lang.Object
public final boolean higher(LogLevel l)
l
.
l
- level to compare
l
.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |