java.lang.Object
org.snmp4j.log.LogLevel
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
LEVEL_NONE
public static final int LEVEL_NONE- See Also:
- Constant Field Values
-
LEVEL_OFF
public static final int LEVEL_OFF- See Also:
- Constant Field Values
-
LEVEL_ALL
public static final int LEVEL_ALL- See Also:
- Constant Field Values
-
LEVEL_TRACE
public static final int LEVEL_TRACE- See Also:
- Constant Field Values
-
LEVEL_DEBUG
public static final int LEVEL_DEBUG- See Also:
- Constant Field Values
-
LEVEL_INFO
public static final int LEVEL_INFO- See Also:
- Constant Field Values
-
LEVEL_WARN
public static final int LEVEL_WARN- See Also:
- Constant Field Values
-
LEVEL_ERROR
public static final int LEVEL_ERROR- See Also:
- Constant Field Values
-
LEVEL_FATAL
public static final int LEVEL_FATAL- See Also:
- Constant Field Values
-
NONE
-
OFF
-
ALL
-
TRACE
-
DEBUG
-
INFO
-
WARN
-
ERROR
-
FATAL
-
-
Constructor Details
-
LogLevel
public LogLevel(int level) -
LogLevel
-
-
Method Details
-
levelFromString
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
Returns aLogLevel
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 ornull
if the supplied level string is not known. - Since:
- 1.7.2
-
getLevel
public int getLevel() -
toString
-