1 Reply Latest reply on Jul 20, 2007 1:20 AM by Inder Jeet Singh

    Problem in configuring log4j in Jboss

    Inder Jeet Singh Newbie

      Hi All,
      I am trying to set up a logger for my web application. I have Jboss 4.0.4 installed on my machine. I am using 'default' configuration of the JBoss server. I have added the follwoing code in my log4j.xml placed at /server/default/conf folder.

       <appender name="WIMAX_LOGS" class="org.apache.log4j.DailyRollingFileAppender">
       <param name="File" value="${jboss.server.home.dir}/log/ppas.log" />
       <param name="Append" value="true" />
      
       <layout class="org.apache.log4j.PatternLayout">
       <param name="ConversionPattern" value="[%5p] %d{dd MMM HH:mm:ss,SSS} - %m%n" />
       </layout>
       </appender>
      
       <category name="ppaslogs" additivity="false">
       <priority value="INFO" />
       <appender-ref ref="WIMAX_LOGS" />
       </category>
      


      After doing this, i restarted the Jboss server and deployed my application on Jboss. When i run my application, the log file gets created but no messages are written to it. However all those messages appear in the 'server.log' frile of the Jboss.
      Can someone tell that what could be the reason for this??

      Thanks & Regards
      Inder Jeet Singh