Module org.snmp4j

Class LogLevel


  • public class LogLevel
    extends java.lang.Object
    • Constructor Detail

      • LogLevel

        public LogLevel​(int level)
      • LogLevel

        public LogLevel​(java.lang.String levelString)
    • Method Detail

      • levelFromString

        public static int levelFromString​(java.lang.String levelString)
        Convert a level string "OFF", "ALL", "DEBUG", etc. into a level number.
        Parameters:
        levelString - one of the level strings "OFF", "ALL", "TRACE", "DEBUG", "INFO", "WARN", "INFO", "ERROR", and "FATAL".
        Returns:
        a number greater than zero if the level string could be converted into a level, zero otherwise.
      • toLevel

        public static LogLevel toLevel​(java.lang.String levelString)
        Returns a LogLevel object for the specified level string.
        Parameters:
        levelString - one of the level strings "OFF", "ALL", "TRACE", "DEBUG", "INFO", "WARN", "ERROR", and "FATAL".
        Returns:
        one of the LogLevel constants defined by this class.
        Since:
        1.7.2
      • getLevel

        public int getLevel()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object