Package ch.qos.logback.classic
Class Level
- java.lang.Object
-
- ch.qos.logback.classic.Level
-
- All Implemented Interfaces:
java.io.Serializable
@Deprecated(since="2022-01-27") public final class Level extends java.lang.Object implements java.io.SerializableDeprecated.This internal logback API is not supported by AEM as a Cloud Service.Defines the set of levels recognized by logback-classic, that isOFF,ERROR,WARN,INFO,DEBUG,TRACEandALL. TheLevelclass is final and cannot be sub-classed.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static LevelALLDeprecated.TheALLis used to turn on all logging.static intALL_INTDeprecated.static java.lang.IntegerALL_INTEGERDeprecated.static LevelDEBUGDeprecated.TheDEBUGlevel designates informational events of lower importance.static intDEBUG_INTDeprecated.static java.lang.IntegerDEBUG_INTEGERDeprecated.static LevelERRORDeprecated.TheERRORlevel designates error events which may or not be fatal to the application.static intERROR_INTDeprecated.static java.lang.IntegerERROR_INTEGERDeprecated.static LevelINFODeprecated.TheINFOlevel designates informational messages highlighting overall progress of the application.static intINFO_INTDeprecated.static java.lang.IntegerINFO_INTEGERDeprecated.intlevelIntDeprecated.java.lang.StringlevelStrDeprecated.static LevelOFFDeprecated.TheOFFis used to turn off logging.static intOFF_INTDeprecated.static java.lang.IntegerOFF_INTEGERDeprecated.static LevelTRACEDeprecated.TheTRACElevel designates informational events of very low importance.static intTRACE_INTDeprecated.static java.lang.IntegerTRACE_INTEGERDeprecated.static LevelWARNDeprecated.TheWARNlevel designates potentially harmful situations.static intWARN_INTDeprecated.static java.lang.IntegerWARN_INTEGERDeprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static LevelfromLocationAwareLoggerInteger(int levelInt)Deprecated.Convert one of the integer values defined inLocationAwareLoggerinterface to an instance of this class, i.e.booleanisGreaterOrEqual(Level r)Deprecated.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.java.lang.IntegertoInteger()Deprecated.Convert a Level to an Integer object.static LeveltoLevel(int val)Deprecated.Convert an integer passed as argument to a Level.static LeveltoLevel(int val, Level defaultLevel)Deprecated.Convert an integer passed as argument to a Level.static LeveltoLevel(java.lang.String sArg)Deprecated.Convert the string passed as argument to a Level.static LeveltoLevel(java.lang.String sArg, Level defaultLevel)Deprecated.Convert the string passed as argument to a Level.static inttoLocationAwareLoggerInteger(Level level)Deprecated.Convert this level instance to an integer value defined in theLocationAwareLoggerinterface.java.lang.StringtoString()Deprecated.Returns the string representation of this Level.static LevelvalueOf(java.lang.String sArg)Deprecated.This method exists in order to comply with Joran's valueOf convention.
-
-
-
Field Detail
-
OFF_INT
public static final int OFF_INT
Deprecated.- See Also:
- Constant Field Values
-
ERROR_INT
public static final int ERROR_INT
Deprecated.- See Also:
- Constant Field Values
-
WARN_INT
public static final int WARN_INT
Deprecated.- See Also:
- Constant Field Values
-
INFO_INT
public static final int INFO_INT
Deprecated.- See Also:
- Constant Field Values
-
DEBUG_INT
public static final int DEBUG_INT
Deprecated.- See Also:
- Constant Field Values
-
TRACE_INT
public static final int TRACE_INT
Deprecated.- See Also:
- Constant Field Values
-
ALL_INT
public static final int ALL_INT
Deprecated.- See Also:
- Constant Field Values
-
OFF_INTEGER
public static final java.lang.Integer OFF_INTEGER
Deprecated.
-
ERROR_INTEGER
public static final java.lang.Integer ERROR_INTEGER
Deprecated.
-
WARN_INTEGER
public static final java.lang.Integer WARN_INTEGER
Deprecated.
-
INFO_INTEGER
public static final java.lang.Integer INFO_INTEGER
Deprecated.
-
DEBUG_INTEGER
public static final java.lang.Integer DEBUG_INTEGER
Deprecated.
-
TRACE_INTEGER
public static final java.lang.Integer TRACE_INTEGER
Deprecated.
-
ALL_INTEGER
public static final java.lang.Integer ALL_INTEGER
Deprecated.
-
OFF
public static final Level OFF
Deprecated.TheOFFis used to turn off logging.
-
ERROR
public static final Level ERROR
Deprecated.TheERRORlevel designates error events which may or not be fatal to the application.
-
WARN
public static final Level WARN
Deprecated.TheWARNlevel designates potentially harmful situations.
-
INFO
public static final Level INFO
Deprecated.TheINFOlevel designates informational messages highlighting overall progress of the application.
-
DEBUG
public static final Level DEBUG
Deprecated.TheDEBUGlevel designates informational events of lower importance.
-
TRACE
public static final Level TRACE
Deprecated.TheTRACElevel designates informational events of very low importance.
-
ALL
public static final Level ALL
Deprecated.TheALLis used to turn on all logging.
-
levelInt
public final int levelInt
Deprecated.
-
levelStr
public final java.lang.String levelStr
Deprecated.
-
-
Method Detail
-
toString
public java.lang.String toString()
Deprecated.Returns the string representation of this Level.- Overrides:
toStringin classjava.lang.Object
-
toInt
public int toInt()
Deprecated.Returns the integer representation of this Level.
-
toInteger
public java.lang.Integer toInteger()
Deprecated.Convert a Level to an Integer object.- Returns:
- This level's Integer mapping.
-
isGreaterOrEqual
public boolean isGreaterOrEqual(Level r)
Deprecated.Returnstrueif this Level has a higher or equal Level than the Level passed as argument,falseotherwise.
-
toLevel
public static Level toLevel(java.lang.String sArg)
Deprecated.Convert the string passed as argument to a Level. If the conversion fails, then this method returnsDEBUG.
-
valueOf
public static Level valueOf(java.lang.String sArg)
Deprecated.This method exists in order to comply with Joran's valueOf convention.- Parameters:
sArg-- Returns:
-
toLevel
public static Level toLevel(int val)
Deprecated.Convert an integer passed as argument to a Level. If the conversion fails, then this method returnsDEBUG.
-
toLevel
public static Level toLevel(int val, Level defaultLevel)
Deprecated.Convert an integer passed as argument to a Level. If the conversion fails, then this method returns the specified default.
-
toLevel
public static Level toLevel(java.lang.String sArg, Level defaultLevel)
Deprecated.Convert the string passed as argument to a Level. If the conversion fails, then this method returns the value ofdefaultLevel.
-
fromLocationAwareLoggerInteger
public static Level fromLocationAwareLoggerInteger(int levelInt)
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
public static int toLocationAwareLoggerInteger(Level level)
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
-
-