[jboss-user] [Beginners Corner] - Re: Disabling Daily Logs

jaikiran do-not-reply at jboss.com
Tue Nov 21 02:36:39 EST 2006

You mean you want to disable the rollover feature in log4j where the files gets renamed to something like server.log.2006-03-07.log? Or do you want to disable the logging itself?

If it's the former then, you will have to modify the contents the log4j.xml file present in %JBOSS_HOME%/server/default/conf folder. This files contain a appender named "FILE" which you will have to change to:

  | <appender name="FILE" class="org.jboss.logging.appender.FileAppender">
  |      <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
  |      <param name="File" value="${jboss.server.home.dir}/log/server.log"/>
  |      <param name="Append" value="false"/>
  |      <layout class="org.apache.log4j.PatternLayout">
  |        <param name="ConversionPattern" value="%d{ISO8601} [%X{TAPUSERNAME}] %-5p [%c] %m%n"/>
  |      </layout>	    
  |    </appender>

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

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

More information about the jboss-user mailing list