logging DWR logs through log4j.xml

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

logging DWR logs through log4j.xml

abhinbalur
We have our application(ear with serveral wars,ejb's and jars in it) deployed in JBOSS 6.1.0. We also have log4j configured. The log4j.xml file is sitting in ../server/myServerMgmt/conf/log4j.xml.  I seem to be gettting my application logs but i do not seem to be getting any of my DWR logs. Does anyone know why?

This is how my appender in log4j.xml looks like:-

<appender name="DWR_LOG" class="org.apache.log4j.RollingFileAppender">
      <param name="File" value="C:/directory/log/COM_Server.log"/>
      <param name="Threshold" value="INFO"/>
      <param name="Append" value="true"/>
      <param name="MaxFileSize" value="5000KB"/>
      <param name="MaxBackupIndex" value="5"/>
      <layout class="org.apache.log4j.PatternLayout">
         <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
      </layout>
   </appender> 
 

<logger category="org.directwebremoting">
     <level name="INFO" />
     <handlers>
       <handler-ref name="DWR_LOG"/>
     </handlers>
</logger>


Any help on this will be grateful. Thanks.,