net.sf.jour.log4j.ext
Class Monitor
java.lang.Object
org.apache.log4j.Priority
org.apache.log4j.Level
net.sf.jour.log4j.ext.Monitor
- public class Monitor
- extends org.apache.log4j.Level
TODO Add docs
- Version:
- $Revision: 1.1 $ ($Author: mishalifschitz $)
- Author:
- michaellif
Fields inherited from class org.apache.log4j.Level |
ALL, DEBUG, ERROR, FATAL, INFO, OFF, WARN |
Fields inherited from class org.apache.log4j.Priority |
ALL_INT, DEBUG_INT, ERROR_INT, FATAL_INT, INFO_INT, OFF_INT, WARN_INT |
Constructor Summary |
protected |
Monitor(int level,
java.lang.String strLevel,
int syslogEquiv)
|
Method Summary |
static org.apache.log4j.Level |
toLevel(int i)
Convert an integer passed as argument to a level. |
static org.apache.log4j.Level |
toLevel(java.lang.String sArg)
Convert the String argument to a level. |
static org.apache.log4j.Level |
toLevel(java.lang.String sArg,
org.apache.log4j.Level defaultValue)
Convert the String argument to a level. |
Methods inherited from class org.apache.log4j.Level |
toLevel |
Methods inherited from class org.apache.log4j.Priority |
equals, getAllPossiblePriorities, getSyslogEquivalent, isGreaterOrEqual, toInt, toPriority, toPriority, toPriority, toPriority, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MONITOR_INT
public static final int MONITOR_INT
- MONITOR level integer value.
- See Also:
- Constant Field Values
MONITOR
public static final Monitor MONITOR
Monitor
protected Monitor(int level,
java.lang.String strLevel,
int syslogEquiv)
toLevel
public static org.apache.log4j.Level toLevel(java.lang.String sArg)
- Convert the String argument to a level. If the conversion fails then this method returns
MONITOR
.
toLevel
public static org.apache.log4j.Level toLevel(java.lang.String sArg,
org.apache.log4j.Level defaultValue)
- Convert the String argument to a level. If the conversion fails, return the level specified
by the second argument, i.e. defaultValue.
toLevel
public static org.apache.log4j.Level toLevel(int i)
throws java.lang.IllegalArgumentException
- Convert an integer passed as argument to a level. If the conversion fails, then this method
returns
Level.DEBUG
.
- Throws:
java.lang.IllegalArgumentException
Copyright © 2004 sourceforge. All Rights Reserved.