java.lang.Object
ch.qos.logback.classic.Level
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Level
Deprecated.with no replacementstatic final int
static final Integer
static final Level
TheDEBUG
level designates informational events of lower importance.static final int
static final Integer
static final Level
TheERROR
level designates error events which may or not be fatal to the application.static final int
static final Integer
static final Level
TheINFO
level designates informational messages highlighting overall progress of the application.static final int
static final Integer
final int
final String
static final Level
TheOFF
is used to turn off logging.static final int
static final Integer
static final Level
TheTRACE
level designates informational events of very low importance.static final int
static final Integer
static final Level
TheWARN
level designates potentially harmful situations.static final int
static final Integer
-
Method Summary
Modifier and TypeMethodDescriptionstatic Level
convertAnSLF4JLevel
(org.slf4j.event.Level slf4jLevel) static Level
fromLocationAwareLoggerInteger
(int levelInt) Convert one of the integer values defined inLocationAwareLogger
interface to an instance of this class, i.e.boolean
Returnstrue
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.Convert a Level to an Integer object.static Level
toLevel
(int val) Convert an integer passed as argument to a Level.static Level
Convert an integer passed as argument to a Level.static Level
Convert the string passed as argument to a Level.static Level
Convert the string passed as argument to a Level.static int
Convert this level instance to an integer value defined in theLocationAwareLogger
interface.toString()
Returns the string representation of this Level.static Level
This method exists in order to comply with Joran's valueOf convention.
-
Field Details
-
OFF_INT
- See Also:
-
ERROR_INT
- See Also:
-
WARN_INT
- See Also:
-
INFO_INT
- See Also:
-
DEBUG_INT
- See Also:
-
TRACE_INT
- See Also:
-
ALL_INT
- See Also:
-
OFF_INTEGER
-
ERROR_INTEGER
-
WARN_INTEGER
-
INFO_INTEGER
-
DEBUG_INTEGER
-
TRACE_INTEGER
-
ALL_INTEGER
-
OFF
-
ERROR
-
WARN
-
INFO
-
DEBUG
-
TRACE
-
ALL
Deprecated.with no replacementThe
ALL
is used to turn on all logging. TheALL
level is vestigial from log4j 1.x.In logback, where the Level class is final, logging can be turned on for all levels by setting a logger's level to
TRACE
.Thus, the
ALL
level is marked as deprecated. -
levelInt
-
levelStr
-
-
Method Details
-
toString
-
toInt
Returns the integer representation of this Level. -
convertAnSLF4JLevel
-
toInteger
-
isGreaterOrEqual
Returnstrue
if this Level has a higher or equal Level than the Level passed as argument,false
otherwise. -
toLevel
-
valueOf
-
toLevel
-
toLevel
-
toLevel
-
fromLocationAwareLoggerInteger
Convert one of the integer values defined inLocationAwareLogger
interface to an instance of this class, i.e. a Level.- Parameters:
levelInt
- An integer value representing a level as defined in LocationAwareLogger- Returns:
- an instance of this class, i.e. a Level.
- Since:
- 1.0.1
-
toLocationAwareLoggerInteger
Convert this level instance to an integer value defined in theLocationAwareLogger
interface.- Parameters:
level
- The level to convert to LocationAwareLogger integer- Returns:
- int An integer corresponding to this level as defined in LocationAwareLogger
- Since:
- 1.0.1
-