[jboss-user] [Installation, Configuration & Deployment] - Re: log4j and Jboss-4.0.5 GA

russray do-not-reply at jboss.com
Tue Feb 6 23:08:49 EST 2007


Checkout the log4j.xml file.  I am doing the same (moved from properties file to xml file)


  | <!-- A time/date based rolling appender -->
  |    <appender name="PROD" class="org.jboss.logging.appender.RollingFileAppender">
  |       <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
  |       <param name="File" value="${jboss.server.home.dir}/log/product.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][%t] [%5p] [%m]%n"/>
  |       </layout>
  |    </appender>
  | 
  | 


Cheers,

Russ

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

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



More information about the jboss-user mailing list