JBoss Logging Log4j 2.2.0.CR1

org.jboss.logging
Class XLevel

java.lang.Object
  extended by org.apache.log4j.Priority
      extended by org.apache.log4j.Level
          extended by org.jboss.logging.XLevel
All Implemented Interfaces:
Serializable

Deprecated. as log4j 1.2.14 has a native TRACE level

public class XLevel
extends org.apache.log4j.Level

Provides custom extention levels for use with the Log4j logging framework.

Adds a trace level that is below the standard Log4j DEBUG level.

This is a custom level that is 100 below the Level.TRACE_INT and represents a lower level useful for logging events that should only be displayed when deep debugging is required.

Version:
$Revision: 2785 $
Author:
Scott Stark
See Also:
Level, Serialized Form

Field Summary
static XLevel TRACE
          Deprecated. The TRACE level object singleton
static int TRACE_INT
          Deprecated. The integer representation of the level, (Level.TRACE_INT - 100)
static String TRACE_STR
          Deprecated. The string name of the trace level.
 
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 XLevel(int level, String strLevel, int syslogEquiv)
          Deprecated. Construct a XLevel.
 
Method Summary
static org.apache.log4j.Level toLevel(int i)
          Deprecated. Convert an integer passed as argument to a priority.
static org.apache.log4j.Level toLevel(int i, org.apache.log4j.Level defaultLevel)
          Deprecated. Convert an integer passed as argument to a level.
static org.apache.log4j.Level toLevel(String name)
          Deprecated. Convert an integer passed as argument to a level.
static org.apache.log4j.Level toLevel(String name, org.apache.log4j.Level defaultLevel)
          Deprecated. Convert an integer passed as argument to a level.
 
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
Deprecated. 
The integer representation of the level, (Level.TRACE_INT - 100)

See Also:
Constant Field Values

TRACE_STR

public static final String TRACE_STR
Deprecated. 
The string name of the trace level.

See Also:
Constant Field Values

TRACE

public static final XLevel TRACE
Deprecated. 
The TRACE level object singleton

Constructor Detail

XLevel

protected XLevel(int level,
                 String strLevel,
                 int syslogEquiv)
Deprecated. 
Construct a XLevel.

Parameters:
level - the level
strLevel - ???
syslogEquiv - the system log equivalent
Method Detail

toLevel

public static org.apache.log4j.Level toLevel(String name,
                                             org.apache.log4j.Level defaultLevel)
Deprecated. 
Convert an integer passed as argument to a level. If the conversion fails, then this method returns the specified default.

Returns:
the Level object for name if one exists, defaultLevel otherwize.

toLevel

public static org.apache.log4j.Level toLevel(String name)
Deprecated. 
Convert an integer passed as argument to a level.

Returns:
the Level object for name if one exists

toLevel

public static org.apache.log4j.Level toLevel(int i)
Deprecated. 
Convert an integer passed as argument to a priority. If the conversion fails, then this method returns the specified default.

Returns:
the Level object for i if one exists, defaultLevel otherwize.

toLevel

public static org.apache.log4j.Level toLevel(int i,
                                             org.apache.log4j.Level defaultLevel)
Deprecated. 
Convert an integer passed as argument to a level. If the conversion fails, then this method returns the specified default.

Returns:
the Level object for i if one exists, defaultLevel otherwize.

JBoss Logging Log4j 2.2.0.CR1

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.