Class Level


  • public final class Level
    extends Object
    Class to represent Logger levels
    • Field Detail

      • ERROR

        public static final Level ERROR
        ERROR log level
      • WARN

        public static final Level WARN
        WARN log level
      • INFO

        public static final Level INFO
        INFO log level
      • DEBUG

        public static final Level DEBUG
        DEBUG log level
      • TRACE

        public static final Level TRACE
        TRACE log level
      • ALL

        public static final Level ALL
        ALL log level
    • Method Detail

      • toInt

        public int toInt()
        Method to get the Level as an int
        Returns:
        the return value
      • toString

        public String toString()
        Method to get the Level string
        Overrides:
        toString in class Object
        Returns:
        the return value
      • toLevel

        public static Level toLevel​(String string,
                                    Level defaultLevel)
        Method to map a Level string to a Level
        Parameters:
        string - string
        defaultLevel - defaultLevel
        Returns:
        the return value