Hi.

How allow (or forbid) logging concrete package with log4j.xml?


  | 
  | <appender name="Apache" class="org.apache.log4j.FileAppender">
  | 
  |   <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
  |   <param name="File" value="${jboss.server.home.dir}/log/apache.log"/>
  |   <param name="Append" value="false"/>
  |   <param name="Threshold" value="INFO"/>   
  | 
  |   <layout class="org.apache.log4j.PatternLayout">     
  |     <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>   
  |   </layout>
  | 
  | </appender>
  | 
  | 

That it is necessary to add in file log4j.xml to allow logging, only whole
 package org.apache in file apache.log. Conversely, forbid logging, only
 whole package org.apache in file apache.log.

thank you.

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

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


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to