[jboss-user] [Installation, Configuration & DEPLOYMENT] - Log4j is not outputting to my application specific log file

rizqureshi2 do-not-reply at jboss.com
Wed Jun 17 10:06:47 EDT 2009


I have the following application entry in ../default/conf/jboss-log4j.xml:

  | <appender name="APPENDER2" class="org.apache.log4j.DailyRollingFileAppender">
  | 	  <param name="Threshold" value="DEBUG"/>
  |         <param name="Append" value="true"/>
  |         <param name="File" value="${jboss.server.log.dir}/myApplication.log"/>
  | 	<!-- roll over every day at midnight-->
  |         <param name="DatePattern" value="'.'yyyy-MM-dd"/>
  |         <layout class="org.apache.log4j.PatternLayout">
  |             <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
  |         </layout>
  |     </appender>
  | 
  | <category name="com.myapp">
  | 	<priority value="DEBUG" />
  | 	<appender-ref ref="APPENDER2" />
  | </category>
  | 

When server starts up, it does create 'myApplication.log' file under ../default/log, but there is absolutely nothing inside that file. I have tried adding different log levels info,debug etc. but no log is being produced. My application logs however can be seen in server.log file. Any solution to this would be appreciated.

Thanks,
Rizwan

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

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



More information about the jboss-user mailing list