This is the first time I use log4j for application logging.  I tried to set up 
the configuration as specified in the wiki;
<appender name="App1Log" class="org.apache.log4j.FileAppender">
  |       <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
  |       <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>
  |    </appender>
  | 
  | ...
  | 
  |    <category name="com.app1">
  |      <appender-ref ref="App1Log"/>
  |    </category>
  |    <category name="com.util">
  |      <appender-ref ref="App1Log"/>
  |    </category>
  | 
  | ...
  | 
  |    <root>
  |       <appender-ref ref="CONSOLE"/>
  |       <appender-ref ref="FILE"/>
  |       <appender-ref ref="App1Log"/>
  |    </root>
  | 
I copy/pasted it to my jboss log4j.xml and added just 1 single extra option to 
it; in the appender<param name="Threshold" value="INFO"/> and I added  
additivity="false" to the category. So my application output will only be 
written to my log, and not to logs of a higher level (in this case - root).
When I ran my application I was surprised to see that JBoss wrote to my 
applicatio log as well. All logmessages from type 'INFO' and higher showed up.  
How is this possible? How can I turn this off?
I want my application log only to contain application logmessagers.




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

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


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to