public final class Level
extends java.lang.Object
implements java.io.Serializable
OFF
,
ERROR
, WARN
, INFO
, DEBUG
,
TRACE
and ALL
. The Level
class is
final and cannot be sub-classed.
Modifier and Type | Field and Description |
---|---|
static Level |
ALL
The
ALL is used to turn on all logging. |
static int |
ALL_INT |
static java.lang.Integer |
ALL_INTEGER |
static Level |
DEBUG
The
DEBUG level designates informational events of lower
importance. |
static int |
DEBUG_INT |
static java.lang.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 java.lang.Integer |
ERROR_INTEGER |
static Level |
INFO
The
INFO level designates informational messages
highlighting overall progress of the application. |
static int |
INFO_INT |
static java.lang.Integer |
INFO_INTEGER |
int |
levelInt |
java.lang.String |
levelStr |
static Level |
OFF
The
OFF is used to turn off logging. |
static int |
OFF_INT |
static java.lang.Integer |
OFF_INTEGER |
static Level |
TRACE
The
TRACE level designates informational events of very low
importance. |
static int |
TRACE_INT |
static java.lang.Integer |
TRACE_INTEGER |
static Level |
WARN
The
WARN level designates potentially harmful situations. |
static int |
WARN_INT |
static java.lang.Integer |
WARN_INTEGER |
Modifier and Type | Method and Description |
---|---|
static Level |
fromLocationAwareLoggerInteger(int levelInt)
Convert one of the integer values defined in
LocationAwareLogger
interface to an instance of this class, i.e. |
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.
|
java.lang.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(java.lang.String sArg)
Convert the string passed as argument to a Level.
|
static Level |
toLevel(java.lang.String sArg,
Level defaultLevel)
Convert the string passed as argument to a Level.
|
static int |
toLocationAwareLoggerInteger(Level level)
Convert this level instance to an integer value defined in the
LocationAwareLogger interface. |
java.lang.String |
toString()
Returns the string representation of this Level.
|
static Level |
valueOf(java.lang.String sArg)
This method exists in order to comply with Joran's valueOf convention.
|
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 java.lang.Integer OFF_INTEGER
public static final java.lang.Integer ERROR_INTEGER
public static final java.lang.Integer WARN_INTEGER
public static final java.lang.Integer INFO_INTEGER
public static final java.lang.Integer DEBUG_INTEGER
public static final java.lang.Integer TRACE_INTEGER
public static final java.lang.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 java.lang.String levelStr
public java.lang.String toString()
toString
in class java.lang.Object
public int toInt()
public java.lang.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(java.lang.String sArg)
DEBUG
.public static Level valueOf(java.lang.String sArg)
sArg
- public static Level toLevel(int val)
DEBUG
.public static Level toLevel(int val, Level defaultLevel)
public static Level toLevel(java.lang.String sArg, Level defaultLevel)
defaultLevel
.public static Level fromLocationAwareLoggerInteger(int levelInt)
LocationAwareLogger
interface to an instance of this class, i.e. a Level.levelInt
- An integer value representing a level as defined in LocationAwareLoggerpublic static int toLocationAwareLoggerInteger(Level level)
LocationAwareLogger
interface.level
- The level to convert to LocationAwareLogger integerCopyright © 2010 - 2020 Adobe. All Rights Reserved