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

XLevel (JBoss/Common API) - JBoss 4.0.1 sp1 common API Documentation 英文版文档


org.jboss.logging
Class XLevel

java.lang.Object
  extended byorg.apache.log4j.Priority
      extended byorg.apache.log4j.Level
          extended byorg.jboss.logging.XLevel

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 Priority.DEBUG_INT and represents a lower level useful for logging events that should only be displayed when deep debugging is required.

Version:
$Revision: 1.5 $
Author:
Scott Stark
See Also:
Level

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

See Also:
Constant Field Values

TRACE_STR

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

See Also:
Constant Field Values

TRACE

public static final XLevel TRACE
The TRACE level object singleton

Constructor Detail

XLevel

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

Method Detail

toLevel

public static org.apache.log4j.Level toLevel(String name,
                                             org.apache.log4j.Level defaultLevel)
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)
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)
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)
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.


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