org.mmbase.util.logging.log4j2
Class Log4jLevel

org.mmbase.util.logging.log4j2.Log4jLevel

public class Log4jLevel

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
           
 
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)
           
 

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

getAllPossibleLog4jPriorities

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

toLog4jLevel

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


MMBase 2002