org.jboss.logmanager.log4j.handlers
Class Log4jJDKLevel

java.lang.Object
  extended by org.apache.log4j.Priority
      extended by org.apache.log4j.Level
          extended by org.jboss.logmanager.log4j.handlers.Log4jJDKLevel
All Implemented Interfaces:
java.io.Serializable

public final class Log4jJDKLevel
extends org.apache.log4j.Level

Log4j equivalents for JDK logging levels. For configuration file usage.

See Also:
Serialized Form

Field Summary
static org.apache.log4j.Level CONFIG
          A mapping of the JDK logging CONFIG level; numerically falls between log4j's INFO and DEBUG levels.
static org.apache.log4j.Level FINE
          A mapping of the JDK logging FINE level; numerically equivalent to log4j's DEBUG level.
static org.apache.log4j.Level FINER
          A mapping of the JDK logging FINER level; numerically falls between log4j's DEBUG and TRACE levels.
static org.apache.log4j.Level FINEST
          A mapping of the JDK logging FINEST level; numerically equivalent to log4j's TRACE level.
static org.apache.log4j.Level INFO
          A mapping of the JDK logging INFO level; numerically equivalent to log4j's INFO level.
static org.apache.log4j.Level SEVERE
          A mapping of the JDK logging SEVERE level; numerically equivalent to log4j's ERROR level.
static org.apache.log4j.Level WARNING
          A mapping of the JDK logging WARNING level; numerically equivalent to log4j's WARN level.
 
Fields inherited from class org.apache.log4j.Level
ALL, DEBUG, ERROR, FATAL, OFF, TRACE, TRACE_INT, 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 Log4jJDKLevel(int level, java.lang.String levelStr, int syslogEquivalent)
          Instantiate a Level object.
 
Method Summary
static org.apache.log4j.Level toLevel(java.lang.String name)
          Get the level for the given name.
 
Methods inherited from class org.apache.log4j.Level
toLevel, 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

SEVERE

public static final org.apache.log4j.Level SEVERE
A mapping of the JDK logging SEVERE level; numerically equivalent to log4j's ERROR level.


WARNING

public static final org.apache.log4j.Level WARNING
A mapping of the JDK logging WARNING level; numerically equivalent to log4j's WARN level.


INFO

public static final org.apache.log4j.Level INFO
A mapping of the JDK logging INFO level; numerically equivalent to log4j's INFO level.


CONFIG

public static final org.apache.log4j.Level CONFIG
A mapping of the JDK logging CONFIG level; numerically falls between log4j's INFO and DEBUG levels.


FINE

public static final org.apache.log4j.Level FINE
A mapping of the JDK logging FINE level; numerically equivalent to log4j's DEBUG level.


FINER

public static final org.apache.log4j.Level FINER
A mapping of the JDK logging FINER level; numerically falls between log4j's DEBUG and TRACE levels.


FINEST

public static final org.apache.log4j.Level FINEST
A mapping of the JDK logging FINEST level; numerically equivalent to log4j's TRACE level.

Constructor Detail

Log4jJDKLevel

protected Log4jJDKLevel(int level,
                        java.lang.String levelStr,
                        int syslogEquivalent)
Instantiate a Level object.

Method Detail

toLevel

public static org.apache.log4j.Level toLevel(java.lang.String name)
Get the level for the given name. If the level is not one of the levels defined in this class, this method delegates to toLevel(String) on the superclass.

Parameters:
name - the level name
Returns:
the equivalent level


Copyright © 2009. All Rights Reserved.