0 Replies Latest reply on Apr 26, 2007 3:04 AM by mahesh mylavarapu

    JBoss Logging problem

    mahesh mylavarapu Newbie

      Hi,

      In our project We have written a specific Logger class extending apache Logger class.We are using DEBUG,ERROR,INFO,SECURITY,PERFORMANCE levels of loggingI had done following setup in log4j.xml

      <appender name="BUSINFO" class="org.jboss.logging.appender.DailyRollingFileAppender">
       <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
       <param name="File" value="${jboss.server.log.dir}/log/app-bus-info.log"/>
       <param name="Append" value="false"/>
       <!-- Rollover at midnight each day -->
       <param name="DatePattern" value="'.'yyyy-MM-dd"/>
       <!-- Rollover at the top of each hour
       <param name="DatePattern" value="'.'yyyy-MM-dd-HH"/>
       -->
       <layout class="org.apache.log4j.PatternLayout">
       <!-- The default pattern: Date Priority [Category] Message\n -->
       <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
       <!-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n
       <param name="ConversionPattern" value="%d %-5r %-5p [%c] (%t:%x) %m%n"/>
       -->
       </layout>
       </appender>


      <category name="pnc">
       <priority value="DEBUG"/>
       <appender-ref ref="BUSDEBUG"/>
       </category>


      ---------------------------------------------
      The problem is log messages are not coming in file mentioned.
      I am using JBoss4.5

      Request you to help me out.