org.globus.util.log4j
Class CoGLevel

java.lang.Object
  extended byorg.apache.log4j.Priority
      extended byorg.apache.log4j.Level
          extended byorg.globus.util.log4j.CoGLevel
All Implemented Interfaces:
Serializable

public class CoGLevel
extends org.apache.log4j.Level

This class introduces a new level level called TRACE. TRACE has lower level than DEBUG.

See Also:
Serialized Form

Field Summary
static CoGLevel TRACE
           
static int TRACE_INT
           
 
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 CoGLevel(int level, String strLevel, int syslogEquiv)
           
 
Method Summary
static org.apache.log4j.Level toLevel(int i)
           
static org.apache.log4j.Level toLevel(String sArg)
          Convert the string passed as argument to a level.
static org.apache.log4j.Level toLevel(String sArg, org.apache.log4j.Level defaultValue)
           
 
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
 

Field Detail

TRACE_INT

public static final int TRACE_INT
See Also:
Constant Field Values

TRACE

public static final CoGLevel TRACE
Constructor Detail

CoGLevel

protected CoGLevel(int level,
                   String strLevel,
                   int syslogEquiv)
Method Detail

toLevel

public static org.apache.log4j.Level toLevel(String sArg)
Convert the string passed as argument to a level. If the conversion fails, then this method returns TRACE.


toLevel

public static org.apache.log4j.Level toLevel(String sArg,
                                             org.apache.log4j.Level defaultValue)

toLevel

public static org.apache.log4j.Level toLevel(int i)
                                      throws IllegalArgumentException
Throws:
IllegalArgumentException