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
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Log4jPriority

public class Log4jLevel
extends Level

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

Author:
Michiel Meeuwissen
See Also:
Serialized Form

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, String strLevel, int syslogEquiv)
           
 
Method Summary
static Priority[] getAllPossibleLog4jPriorities()
           
static Level toLevel(int i)
           
static Level toLevel(String sArg)
           
static Level toLog4jLevel(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,
                     String strLevel,
                     int syslogEquiv)
Method Detail

toLevel

public static Level toLevel(String sArg)

toLevel

public static Level toLevel(int i)
                     throws IllegalArgumentException
Throws:
IllegalArgumentException

getAllPossibleLog4jPriorities

public static Priority[] getAllPossibleLog4jPriorities()

toLog4jLevel

public static Level toLog4jLevel(String sArg)


MMBase build 1.8.1.20060716