java.lang.Object
ch.qos.logback.classic.Level
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LevelDeprecated.with no replacementstatic final intstatic final Integerstatic final LevelTheDEBUGlevel designates informational events of lower importance.static final intstatic final Integerstatic final LevelTheERRORlevel designates error events which may or not be fatal to the application.static final intstatic final Integerstatic final LevelTheINFOlevel designates informational messages highlighting overall progress of the application.static final intstatic final Integerfinal intfinal Stringstatic final LevelTheOFFis used to turn off logging.static final intstatic final Integerstatic final LevelTheTRACElevel designates informational events of very low importance.static final intstatic final Integerstatic final LevelTheWARNlevel designates potentially harmful situations.static final intstatic final Integer -
Method Summary
Modifier and TypeMethodDescriptionstatic LevelconvertAnSLF4JLevel(org.slf4j.event.Level slf4jLevel) static LevelfromLocationAwareLoggerInteger(int levelInt) Convert one of the integer values defined inLocationAwareLoggerinterface to an instance of this class, i.e.booleanReturnstrueif this Level has a higher or equal Level than the Level passed as argument,falseotherwise.inttoInt()Returns the integer representation of this Level.Convert a Level to an Integer object.static LeveltoLevel(int val) Convert an integer passed as argument to a Level.static LevelConvert an integer passed as argument to a Level.static LevelConvert the string passed as argument to a Level.static LevelConvert the string passed as argument to a Level.static intConvert this level instance to an integer value defined in theLocationAwareLoggerinterface.toString()Returns the string representation of this Level.static LevelThis 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
ALLis used to turn on all logging. TheALLlevel 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
ALLlevel is marked as deprecated. -
levelInt
-
levelStr
-
-
Method Details
-
toString
-
toInt
Returns the integer representation of this Level. -
convertAnSLF4JLevel
-
toInteger
-
isGreaterOrEqual
Returnstrueif this Level has a higher or equal Level than the Level passed as argument,falseotherwise. -
toLevel
-
valueOf
-
toLevel
-
toLevel
-
toLevel
-
fromLocationAwareLoggerInteger
Convert one of the integer values defined inLocationAwareLoggerinterface 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 theLocationAwareLoggerinterface.- 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
-