Class Level

  • All Implemented Interfaces:
    java.io.Serializable

    @Deprecated(since="2022-01-27")
    public final class Level
    extends java.lang.Object
    implements java.io.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:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Level ALL
      Deprecated.
      The ALL is used to turn on all logging.
      static int ALL_INT
      Deprecated.
       
      static java.lang.Integer ALL_INTEGER
      Deprecated.
       
      static Level DEBUG
      Deprecated.
      The DEBUG level designates informational events of lower importance.
      static int DEBUG_INT
      Deprecated.
       
      static java.lang.Integer DEBUG_INTEGER
      Deprecated.
       
      static Level ERROR
      Deprecated.
      The ERROR level designates error events which may or not be fatal to the application.
      static int ERROR_INT
      Deprecated.
       
      static java.lang.Integer ERROR_INTEGER
      Deprecated.
       
      static Level INFO
      Deprecated.
      The INFO level designates informational messages highlighting overall progress of the application.
      static int INFO_INT
      Deprecated.
       
      static java.lang.Integer INFO_INTEGER
      Deprecated.
       
      int levelInt
      Deprecated.
       
      java.lang.String levelStr
      Deprecated.
       
      static Level OFF
      Deprecated.
      The OFF is used to turn off logging.
      static int OFF_INT
      Deprecated.
       
      static java.lang.Integer OFF_INTEGER
      Deprecated.
       
      static Level TRACE
      Deprecated.
      The TRACE level designates informational events of very low importance.
      static int TRACE_INT
      Deprecated.
       
      static java.lang.Integer TRACE_INTEGER
      Deprecated.
       
      static Level WARN
      Deprecated.
      The WARN level designates potentially harmful situations.
      static int WARN_INT
      Deprecated.
       
      static java.lang.Integer WARN_INTEGER
      Deprecated.
       
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static Level fromLocationAwareLoggerInteger​(int levelInt)
      Deprecated.
      Convert one of the integer values defined in LocationAwareLogger interface to an instance of this class, i.e.
      boolean isGreaterOrEqual​(Level r)
      Deprecated.
      Returns true if this Level has a higher or equal Level than the Level passed as argument, false otherwise.
      int toInt()
      Deprecated.
      Returns the integer representation of this Level.
      java.lang.Integer toInteger()
      Deprecated.
      Convert a Level to an Integer object.
      static Level toLevel​(int val)
      Deprecated.
      Convert an integer passed as argument to a Level.
      static Level toLevel​(int val, Level defaultLevel)
      Deprecated.
      Convert an integer passed as argument to a Level.
      static Level toLevel​(java.lang.String sArg)
      Deprecated.
      Convert the string passed as argument to a Level.
      static Level toLevel​(java.lang.String sArg, Level defaultLevel)
      Deprecated.
      Convert the string passed as argument to a Level.
      static int toLocationAwareLoggerInteger​(Level level)
      Deprecated.
      Convert this level instance to an integer value defined in the LocationAwareLogger interface.
      java.lang.String toString()
      Deprecated.
      Returns the string representation of this Level.
      static Level valueOf​(java.lang.String sArg)
      Deprecated.
      This method exists in order to comply with Joran's valueOf convention.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • 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.
        The OFF is used to turn off logging.
      • ERROR

        public static final Level ERROR
        Deprecated.
        The ERROR level designates error events which may or not be fatal to the application.
      • WARN

        public static final Level WARN
        Deprecated.
        The WARN level designates potentially harmful situations.
      • INFO

        public static final Level INFO
        Deprecated.
        The INFO level designates informational messages highlighting overall progress of the application.
      • DEBUG

        public static final Level DEBUG
        Deprecated.
        The DEBUG level designates informational events of lower importance.
      • TRACE

        public static final Level TRACE
        Deprecated.
        The TRACE level designates informational events of very low importance.
      • ALL

        public static final Level ALL
        Deprecated.
        The ALL is 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:
        toString in class java.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.
        Returns true if this Level has a higher or equal Level than the Level passed as argument, false otherwise.
      • 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 returns DEBUG.
      • 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 returns DEBUG.
      • 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 of defaultLevel.
      • fromLocationAwareLoggerInteger

        public static Level fromLocationAwareLoggerInteger​(int levelInt)
        Deprecated.
        Convert one of the integer values defined in LocationAwareLogger 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

        public static int toLocationAwareLoggerInteger​(Level level)
        Deprecated.
        Convert this level instance to an integer value defined in the LocationAwareLogger 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