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

ThreadLocalAppender (JBoss Aspects API) - JBoss 4.0.1 sp1 aspects API Documentation 英文版文档


org.jboss.aspects.logging
Class ThreadLocalAppender

java.lang.Object
  extended byorg.apache.log4j.AppenderSkeleton
      extended byorg.jboss.aspects.logging.ThreadLocalAppender
All Implemented Interfaces:
org.apache.log4j.Appender, org.apache.log4j.spi.OptionHandler

public class ThreadLocalAppender
extends org.apache.log4j.AppenderSkeleton

An appender that logs into a thread local array list.

Version:
$Revision: 1.2 $
Author:
Adrian Brock.

Field Summary
static String LOG
           
 
Fields inherited from class org.apache.log4j.AppenderSkeleton
closed, errorHandler, headFilter, layout, name, tailFilter, threshold
 
Constructor Summary
ThreadLocalAppender()
           
 
Method Summary
protected  void append(org.apache.log4j.spi.LoggingEvent event)
           
 void close()
           
static ArrayList getList()
          Change the theadlocal list
 boolean requiresLayout()
           
static void setList(ArrayList list)
          Change the theadlocal list
 
Methods inherited from class org.apache.log4j.AppenderSkeleton
activateOptions, addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, setLayout, setName, setThreshold
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final String LOG
See Also:
Constant Field Values
Constructor Detail

ThreadLocalAppender

public ThreadLocalAppender()
Method Detail

getList

public static ArrayList getList()
Change the theadlocal list


setList

public static void setList(ArrayList list)
Change the theadlocal list

Parameters:
list - the new list

append

protected void append(org.apache.log4j.spi.LoggingEvent event)

requiresLayout

public boolean requiresLayout()

close

public void close()


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