0 Replies Latest reply on Nov 2, 2004 6:15 AM by Vahagn H

    jboss 4.0 and logging.

    Vahagn H Newbie

      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.