[jboss-user] [Installation, Configuration & Deployment] - JBoss Logging problem

mahesh.mylavarapu do-not-reply at jboss.com
Thu Apr 26 03:04:50 EDT 2007


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.





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

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



More information about the jboss-user mailing list