java.lang.Object
org.snmp4j.log.LogLevel
-
Field Summary
Modifier and TypeFieldDescriptionstatic final LogLevel
static final LogLevel
static final LogLevel
static final LogLevel
static final LogLevel
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final LogLevel
static final LogLevel
static final LogLevel
static final LogLevel
-
Constructor Summary
-
Method Summary
-
Field Details
-
LEVEL_NONE
public static final int LEVEL_NONE- See Also:
-
LEVEL_OFF
public static final int LEVEL_OFF- See Also:
-
LEVEL_ALL
public static final int LEVEL_ALL- See Also:
-
LEVEL_TRACE
public static final int LEVEL_TRACE- See Also:
-
LEVEL_DEBUG
public static final int LEVEL_DEBUG- See Also:
-
LEVEL_INFO
public static final int LEVEL_INFO- See Also:
-
LEVEL_WARN
public static final int LEVEL_WARN- See Also:
-
LEVEL_ERROR
public static final int LEVEL_ERROR- See Also:
-
LEVEL_FATAL
public static final int LEVEL_FATAL- See Also:
-
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
-