[jboss-user] [Beginners Corner] - Re: Multiple Logs Is it possible?

PeterJ do-not-reply at jboss.com
Wed Jan 10 11:45:51 EST 2007


I think this will work.  Assume two war files, war1 and war2.  The classes in war1 have package name org.war.one, and the classes in war2 have package name org.war.two.

Update the log4j.xml file, adding an appender for each log file (see the existing "FILE" appender as an example).  Then add categories for each appender as follows:

<category name="org.war.one">
  |  <priority value="DEBUG"/>
  |  <appender-ref ref="FILE-4-WAR1"/>
  | </category>
  | <category name="org.war.two">
  |  <priority value="DEBUG"/>
  |  <appender-ref ref="FILE-4-WAR2"/>
  | </category>



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4000035#4000035

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4000035



More information about the jboss-user mailing list