|
Logback API Version 0.9.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.qos.logback.classic.Level
public final class Level
Defines the set of levels recognized by logback-classic, that is OFF
,
ERROR
, WARN
, INFO
, DEBUG
,
TRACE
and ALL
.
Level
class is
final and cannot be sub-classed.
Field Summary | |
---|---|
static Level |
ALL
The ALL is used to turn on all logging. |
static int |
ALL_INT
|
static Integer |
ALL_INTEGER
|
static Level |
DEBUG
The DEBUG level designates informational events of lower
importance. |
static int |
DEBUG_INT
|
static Integer |
DEBUG_INTEGER
|
static Level |
ERROR
The ERROR level designates error events which may or not
be fatal to the application. |
static int |
ERROR_INT
|
static Integer |
ERROR_INTEGER
|
static Level |
INFO
The INFO level designates informational messages
highlighting overall progress of the application. |
static int |
INFO_INT
|
static Integer |
INFO_INTEGER
|
int |
levelInt
|
String |
levelStr
|
static Level |
OFF
The OFF is used to turn off logging. |
static int |
OFF_INT
|
static Integer |
OFF_INTEGER
|
static Level |
TRACE
The TRACE level designates informational events of very low
importance. |
static int |
TRACE_INT
|
static Integer |
TRACE_INTEGER
|
static Level |
WARN
The WARN level designates potentially harmful situations. |
static int |
WARN_INT
|
static Integer |
WARN_INTEGER
|
Method Summary | |
---|---|
boolean |
isGreaterOrEqual(Level r)
Returns true if this Level has a higher or equal Level than
the Level passed as argument, false otherwise. |
int |
toInt()
Returns the integer representation of this Level. |
Integer |
toInteger()
Convert a Level to an Integer object. |
static Level |
toLevel(int val)
Convert an integer passed as argument to a Level. |
static Level |
toLevel(int val,
Level defaultLevel)
Convert an integer passed as argument to a Level. |
static Level |
toLevel(String sArg)
Convert the string passed as argument to a Level. |
static Level |
toLevel(String sArg,
Level defaultLevel)
Convert the string passed as argument to a Level. |
String |
toString()
Returns the string representation of this Level. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int OFF_INT
public static final int ERROR_INT
public static final int WARN_INT
public static final int INFO_INT
public static final int DEBUG_INT
public static final int TRACE_INT
public static final int ALL_INT
public static final Integer OFF_INTEGER
public static final Integer ERROR_INTEGER
public static final Integer WARN_INTEGER
public static final Integer INFO_INTEGER
public static final Integer DEBUG_INTEGER
public static final Integer TRACE_INTEGER
public static final Integer ALL_INTEGER
public static final Level OFF
OFF
is used to turn off logging.
public static final Level ERROR
ERROR
level designates error events which may or not
be fatal to the application.
public static final Level WARN
WARN
level designates potentially harmful situations.
public static final Level INFO
INFO
level designates informational messages
highlighting overall progress of the application.
public static final Level DEBUG
DEBUG
level designates informational events of lower
importance.
public static final Level TRACE
TRACE
level designates informational events of very low
importance.
public static final Level ALL
ALL
is used to turn on all logging.
public final int levelInt
public final String levelStr
Method Detail |
---|
public final String toString()
toString
in class Object
public final int toInt()
public final Integer toInteger()
public boolean isGreaterOrEqual(Level r)
true
if this Level has a higher or equal Level than
the Level passed as argument, false
otherwise.
public static Level toLevel(String sArg)
DEBUG
.
public static Level toLevel(int val)
DEBUG
.
public static Level toLevel(int val, Level defaultLevel)
public static Level toLevel(String sArg, Level defaultLevel)
defaultLevel
.
|
Logback API Version 0.9.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |