org.snmp4j.log
Class LogLevel
java.lang.Object
org.snmp4j.log.LogLevel
public class LogLevel
- extends java.lang.Object
Method Summary |
int |
getLevel()
|
static int |
levelFromString(java.lang.String levelString)
Convert a level string "OFF", "ALL", "DEBUG", etc. |
static LogLevel |
toLevel(java.lang.String levelString)
Returns a LogLevel object for the specified level string. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
public static final LogLevel NONE
OFF
public static final LogLevel OFF
ALL
public static final LogLevel ALL
TRACE
public static final LogLevel TRACE
DEBUG
public static final LogLevel DEBUG
INFO
public static final LogLevel INFO
WARN
public static final LogLevel WARN
ERROR
public static final LogLevel ERROR
FATAL
public static final LogLevel FATAL
LogLevel
public LogLevel(int level)
LogLevel
public LogLevel(java.lang.String levelString)
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 > 0 if the level string could be converted into a level,
0 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
Copyright © 2011 SNMP4J.org. All Rights Reserved.