站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 common API Documentation 英文版文档

XPriority (JBoss/Common API) - JBoss 3.2.7 common API Documentation 英文版文档


org.jboss.logging
Class XPriority

java.lang.Object
  extended byorg.apache.log4j.Priority
      extended byorg.jboss.logging.XPriority

Deprecated. Use XLevel instead.

public class XPriority
extends org.apache.log4j.Priority

Provides custom extention priorites for use with the Log4j logging framework. Adds a trace priority that is below the standard log4j DEBUG priority. This is a custom priority that is 100 below the Priority.DEBUG_INT and represents a lower priority useful for logging events that should only be displayed when deep debugging is required.

Version:
$Revision: 1.2 $
Author:
Scott Stark
See Also:
Category, Priority

Field Summary
static XPriority TRACE
          Deprecated. The TRACE priority object singleton
static int TRACE_INT
          Deprecated. The integer representation of the priority, (Priority.DEBUG_INT - 100)
static String TRACE_STR
          Deprecated. The string name of the trace priority.
 
Fields inherited from class org.apache.log4j.Priority
ALL_INT, DEBUG, DEBUG_INT, ERROR, ERROR_INT, FATAL, FATAL_INT, INFO, INFO_INT, OFF_INT, WARN, WARN_INT
 
Constructor Summary
protected XPriority(int level, String strLevel, int syslogEquiv)
          Deprecated. Construct a XPriority.
 
Method Summary
static org.apache.log4j.Priority toPriority(int i, org.apache.log4j.Priority defaultPriority)
          Deprecated. Convert an integer passed as argument to a priority.
static org.apache.log4j.Priority toPriority(String name)
          Deprecated. Convert an integer passed as argument to a priority.
static org.apache.log4j.Priority toPriority(String name, org.apache.log4j.Priority defaultPriority)
          Deprecated. Convert an integer passed as argument to a priority.
 
Methods inherited from class org.apache.log4j.Priority
equals, getAllPossiblePriorities, getSyslogEquivalent, isGreaterOrEqual, toInt, 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 priority, (Priority.DEBUG_INT - 100)

See Also:
Constant Field Values

TRACE_STR

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


TRACE

public static final XPriority TRACE
Deprecated. 
The TRACE priority object singleton

Constructor Detail

XPriority

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

Method Detail

toPriority

public static org.apache.log4j.Priority toPriority(String name,
                                                   org.apache.log4j.Priority defaultPriority)
Deprecated. 
Convert an integer passed as argument to a priority. If the conversion fails, then this method returns the specified default.

Returns:
the Priority object for name if one exists, defaultPriority otherwize.

toPriority

public static org.apache.log4j.Priority toPriority(String name)
Deprecated. 
Convert an integer passed as argument to a priority.

Returns:
the Priority object for name if one exists

toPriority

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

Returns:
the Priority object for i if one exists, defaultPriority otherwize.


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.