org.mmbase.util.logging.log4j
Class Log4jLevel

java.lang.Object
  extended byorg.apache.log4j.Priority
      extended byorg.apache.log4j.Level
          extended byorg.mmbase.util.logging.log4j.Log4jLevel
Direct Known Subclasses:
Log4jPriority

public class Log4jLevel
extends org.apache.log4j.Level

LoggerLevel The new Level class for Log4jImpl. It extends the log4j Level with 2 extra levels, namely `SERVICE' and `TRACE'.

Author:
Michiel Meeuwissen

Field Summary
static Log4jLevel SERVICE
           
static Log4jLevel TRACE
           
 
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 Log4jLevel(int level, java.lang.String strLevel, int syslogEquiv)
           
 
Method Summary
static org.apache.log4j.Priority[] getAllPossibleLog4jPriorities()
           
static org.apache.log4j.Level toLevel(int i)
           
static org.apache.log4j.Level toLevel(java.lang.String sArg)
           
static org.apache.log4j.Level toLog4jLevel(java.lang.String sArg)
           
 
Methods inherited from class org.apache.log4j.Level
toLevel, 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

SERVICE

public static final Log4jLevel SERVICE

TRACE

public static final Log4jLevel TRACE
Constructor Detail

Log4jLevel

protected Log4jLevel(int level,
                     java.lang.String strLevel,
                     int syslogEquiv)
Method Detail

toLevel

public static org.apache.log4j.Level toLevel(java.lang.String sArg)

toLevel

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

getAllPossibleLog4jPriorities

public static org.apache.log4j.Priority[] getAllPossibleLog4jPriorities()

toLog4jLevel

public static org.apache.log4j.Level toLog4jLevel(java.lang.String sArg)


MMBase build 1.7.1.20041002