tags:

views:

53

answers:

1

Hi,

How can I upgrade JBoss AS 4.0.5 to TCL Filter, so that it supports separate application logs.

Any help is appreciated in advance.

Thanks, Ram

A: 

Googled for "jboss tclfilter", first hit:

http://community.jboss.org/wiki/SeparatingApplicationLogs

<appender name="App1Log" class="org.apache.log4j.FileAppender">
  <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"></errorHandler>
  <param name="Append" value="false"/>
  <param name="File" value="${jboss.server.home.dir}/log/app1.log"/>
  <layout class="org.apache.log4j.PatternLayout">
     <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
  </layout>
  <filter class="org.jboss.logging.filter.TCLFilter">
     <param name="AcceptOnMatch" value="true"/>
     <param name="DeployURL" value="app1.ear"/>
  </filter>
</appender>
skaffman
Dude, I have added these tags exactly in my log4j.xml, but everytime when I start my JBoss AS, it picks up default appender(with no filter defined), and not that which are defined with DeplyURL. Anyways, Thanx, Ram
Ram Kumar Sharma