Package ch.qos.logback.classic
Class Level
java.lang.Object
ch.qos.logback.classic.Level
- All Implemented Interfaces:
Serializable
Deprecated.
This internal logback API is not supported by AEM as a Cloud Service.
Defines the set of levels recognized by logback-classic, that is
OFF,
ERROR, WARN, INFO, DEBUG,
TRACE and ALL. The Level class is
final and cannot be sub-classed.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LevelDeprecated.TheALLis used to turn on all logging.static final intDeprecated.static final IntegerDeprecated.static final LevelDeprecated.TheDEBUGlevel designates informational events of lower importance.static final intDeprecated.static final IntegerDeprecated.static final LevelDeprecated.TheERRORlevel designates error events which may or not be fatal to the application.static final intDeprecated.static final IntegerDeprecated.static final LevelDeprecated.TheINFOlevel designates informational messages highlighting overall progress of the application.static final intDeprecated.static final IntegerDeprecated.final intDeprecated.final StringDeprecated.static final LevelDeprecated.TheOFFis used to turn off logging.static final intDeprecated.static final IntegerDeprecated.static final LevelDeprecated.TheTRACElevel designates informational events of very low importance.static final intDeprecated.static final IntegerDeprecated.static final LevelDeprecated.TheWARNlevel designates potentially harmful situations.static final intDeprecated.static final IntegerDeprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic LevelfromLocationAwareLoggerInteger(int levelInt) Deprecated.Convert one of the integer values defined inLocationAwareLoggerinterface to an instance of this class, i.e.booleanDeprecated.Returnstrueif this Level has a higher or equal Level than the Level passed as argument,falseotherwise.inttoInt()Deprecated.Returns the integer representation of this Level.Deprecated.Convert a Level to an Integer object.static LeveltoLevel(int val) Deprecated.Convert an integer passed as argument to a Level.static LevelDeprecated.Convert an integer passed as argument to a Level.static LevelDeprecated.Convert the string passed as argument to a Level.static LevelDeprecated.Convert the string passed as argument to a Level.static intDeprecated.Convert this level instance to an integer value defined in theLocationAwareLoggerinterface.toString()Deprecated.Returns the string representation of this Level.static LevelDeprecated.This method exists in order to comply with Joran's valueOf convention.
-
Field Details
-
OFF_INT
public static final int OFF_INTDeprecated.- See Also:
-
ERROR_INT
public static final int ERROR_INTDeprecated.- See Also:
-
WARN_INT
public static final int WARN_INTDeprecated.- See Also:
-
INFO_INT
public static final int INFO_INTDeprecated.- See Also:
-
DEBUG_INT
public static final int DEBUG_INTDeprecated.- See Also:
-
TRACE_INT
public static final int TRACE_INTDeprecated.- See Also:
-
ALL_INT
public static final int ALL_INTDeprecated.- See Also:
-
OFF_INTEGER
Deprecated. -
ERROR_INTEGER
Deprecated. -
WARN_INTEGER
Deprecated. -
INFO_INTEGER
Deprecated. -
DEBUG_INTEGER
Deprecated. -
TRACE_INTEGER
Deprecated. -
ALL_INTEGER
Deprecated. -
OFF
Deprecated.TheOFFis used to turn off logging. -
ERROR
Deprecated.TheERRORlevel designates error events which may or not be fatal to the application. -
WARN
Deprecated.TheWARNlevel designates potentially harmful situations. -
INFO
Deprecated.TheINFOlevel designates informational messages highlighting overall progress of the application. -
DEBUG
Deprecated.TheDEBUGlevel designates informational events of lower importance. -
TRACE
Deprecated.TheTRACElevel designates informational events of very low importance. -
ALL
Deprecated.TheALLis used to turn on all logging. -
levelInt
public final int levelIntDeprecated. -
levelStr
Deprecated.
-
-
Method Details
-
toString
Deprecated.Returns the string representation of this Level. -
toInt
public int toInt()Deprecated.Returns the integer representation of this Level. -
toInteger
Deprecated.Convert a Level to an Integer object.- Returns:
- This level's Integer mapping.
-
isGreaterOrEqual
Deprecated.Returnstrueif this Level has a higher or equal Level than the Level passed as argument,falseotherwise. -
toLevel
Deprecated.Convert the string passed as argument to a Level. If the conversion fails, then this method returnsDEBUG. -
valueOf
Deprecated.This method exists in order to comply with Joran's valueOf convention.- Parameters:
sArg-- Returns:
-
toLevel
Deprecated.Convert an integer passed as argument to a Level. If the conversion fails, then this method returnsDEBUG. -
toLevel
Deprecated.Convert an integer passed as argument to a Level. If the conversion fails, then this method returns the specified default. -
toLevel
Deprecated.Convert the string passed as argument to a Level. If the conversion fails, then this method returns the value ofdefaultLevel. -
fromLocationAwareLoggerInteger
Deprecated.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
Deprecated.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
-