title: size of boot.log file in jboss 6.x get out of control
body: <p>I am using <code>jboss-6.1.0.Final</code>, when I start my server, log file(boot.log) size getting increased and increased its 16GB first time.</p>
  
  <p>I stop my application server and again start but issue still persist....! and size of file is  20GB and again 16GB.</p>
  
  <p>I google lot...! I found below property in {JBOSS_HOME}\server\server_name\deploy\jboss-logging.xml for server.log .</p>
  
  <pre><code>   &lt;size-rotating-file-handler
           file-name="${jboss.server.log.dir}/server.log"
           name="FILE"
           autoflush="true"
           append="true"
           rotate-size="500k"
           max-backup-index="2"&gt;
  
        &lt;error-manager&gt;
           &lt;only-once/&gt;
        &lt;/error-manager&gt;
  
        &lt;formatter&gt;
           &lt;pattern-formatter pattern="%d %-5p [%c] (%t) %m%n"/&gt;
        &lt;/formatter&gt;
     &lt;/size-rotating-file-handler&gt;
  </code></pre>
  
  <p>I change </p>
  
  <p><code>file-name="${jboss.server.log.dir}/server.log"</code> </p>
  
  <p>to </p>
  
  <p><code>file-name="${jboss.server.log.dir}/boot.log"</code></p>
  
  <p>but its not working... Is it right way to do so...? or any other way to achieve same</p>
  
  <p>This is my jboss-logging.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;!-- ===================================================================== --&gt;
  &lt;!--                                                                       --&gt;
  &lt;!--  Logging System Configuration                                         --&gt;
  &lt;!--                                                                       --&gt;
  &lt;!-- ===================================================================== --&gt;
  
  &lt;logging xmlns="urn:jboss:logging:6.0" xmlns:b="urn:jboss:bean-deployer:2.0"&gt;
  
     &lt;!-- ================================= --&gt;
     &lt;!-- Preserve messages in a local file --&gt;
     &lt;!-- ================================= --&gt;
  
     &lt;!-- A time/date based rolling handler --&gt;
  
     &lt;periodic-rotating-file-handler
           file-name="${jboss.server.log.dir}/server.log"
           name="FILE"
           autoflush="true"
           append="true"
           suffix=".yyyy-MM-dd"&gt;  &lt;!-- To roll over at the top of each hour, use ".yyyy-MM-dd-HH" instead --&gt;
  
        &lt;error-manager&gt;
           &lt;only-once/&gt;
        &lt;/error-manager&gt;
  
        &lt;formatter&gt;
           &lt;!-- To revert back to simple stack traces without JAR versions, change "%E" to "%e" below. --&gt;
           &lt;!-- Uncomment this to get the class name in the log as well as the category
           &lt;pattern-formatter pattern="%d %-5p [%c] %C{1} (%t) %s%E%n"/&gt;
           --&gt;
           &lt;!-- Uncomment this to log without the class name in the log --&gt;
           &lt;pattern-formatter pattern="%d %-5p [%c] (%t) %s%E%n"/&gt;
        &lt;/formatter&gt;
     &lt;/periodic-rotating-file-handler&gt;
  
     &lt;!-- A size based file rolling appender
  
     &lt;size-rotating-file-handler
           file-name="${jboss.server.log.dir}/server.log"
           name="FILE"
           autoflush="true"
           append="true"
           rotate-size="500k"
           max-backup-index="5"&gt;
  
        &lt;error-manager&gt;
           &lt;only-once/&gt;
        &lt;/error-manager&gt;
  
        &lt;formatter&gt;
           &lt;pattern-formatter pattern="%d %-5p [%c] (%t) %m%n"/&gt;
        &lt;/formatter&gt;
     &lt;/size-rotating-file-handler&gt;
     --&gt;
  
     &lt;!-- ============================== --&gt;
     &lt;!-- Append messages to the console --&gt;
     &lt;!-- ============================== --&gt;
  
     &lt;console-handler name="CONSOLE" autoflush="true" target="System.out"&gt;
        &lt;error-manager&gt;
           &lt;only-once/&gt;
        &lt;/error-manager&gt;
  
        &lt;level name="INFO"/&gt;
  
        &lt;formatter&gt;
           &lt;pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] %s%E%n"/&gt;
        &lt;/formatter&gt;
     &lt;/console-handler&gt;
  
     &lt;!-- ====================== --&gt;
     &lt;!-- More Appender examples --&gt;
     &lt;!-- ====================== --&gt;
  
     &lt;!-- Buffer events and log them asynchronously
  
     &lt;async-handler name="ASYNC"&gt;
        &lt;error-manager&gt;
           &lt;only-once/&gt;
        &lt;/error-manager&gt;
  
        &lt;sub-handlers&gt;
           &lt;handler-ref name="FILE"/&gt;
           &lt;handler-ref name="CONSOLE"/&gt;
           &lt;handler-ref name="SMTP"/&gt;
        &lt;/sub-handlers&gt;
     &lt;/async-handler&gt;
     --&gt;
  
     &lt;!-- EMail events to an administrator
  
     &lt;log4j-appender name="SMTP" class="org.apache.log4j.net.SMTPAppender"&gt;
        &lt;error-manager&gt;
           &lt;only-once/&gt;
        &lt;/error-manager&gt;
  
        &lt;level name="ERROR"/&gt;
  
        &lt;properties&gt;
           &lt;property name="to"&gt;admin@myhost.domain.com&lt;/property&gt;
           &lt;property name="from"&gt;nobody@myhost.domain.com&lt;/property&gt;
           &lt;property name="subject"&gt;JBoss Sever Errors&lt;/property&gt;
           &lt;property name="SMTPHost"&gt;localhost&lt;/property&gt;
           &lt;property name="bufferSize"&gt;10&lt;/property&gt;
        &lt;/properties&gt;
  
        &lt;formatter&gt;
           &lt;pattern-formatter pattern="%d %-5p [%c] (%t) %m%n"/&gt;
        &lt;/formatter&gt;
     &lt;/log4j-appender&gt;
     --&gt;
  
     &lt;!-- Syslog events
  
     &lt;log4j-appender name="SYSLOG" class="org.apache.log4j.net.SyslogAppender"&gt;
        &lt;error-manager&gt;
           &lt;only-once/&gt;
        &lt;/error-manager&gt;
  
        &lt;properties&gt;
           &lt;property name="facility"&gt;LOCAL7&lt;/property&gt;
           &lt;property name="facilityPrinting"&gt;true&lt;/property&gt;
           &lt;property name="syslogHost"&gt;localhost&lt;/property&gt;
        &lt;/properties&gt;
  
        &lt;formatter&gt;
           &lt;pattern-formatter pattern="[%d,%c{1}] %m%n"/&gt;
        &lt;/formatter&gt;
     &lt;/log4j-appender&gt;
     --&gt;
  
     &lt;!-- Log events to JMS (requires a topic to be created)
  
     &lt;log4j-appender name="JMS" class="org.apache.log4j.net.JMSAppender"&gt;
        &lt;error-manager&gt;
           &lt;only-once/&gt;
        &lt;/error-manager&gt;
  
        &lt;level name="ERROR"/&gt;
  
        &lt;properties&gt;
           &lt;property name="topicConnectionFactoryBindingName"&gt;
              --&gt;&lt;!-- Use injection so that an implicit dependency is formed - TODO: get the correct property name --&gt;&lt;!--
              &lt;b:inject bean="myTopicBiding" property="name"/&gt;
           &lt;/property&gt;
           &lt;property name="topicBindingName"&gt;topic/MyErrorsTopic&lt;/property&gt;
        &lt;/properties&gt;
     &lt;/log4j-appender&gt;
     --&gt;
  
     &lt;!-- Log events through SNMP
  
     &lt;log4j-appender name="TRAP_LOG" class="org.apache.log4j.ext.SNMPTrapAppender"&gt;
        &lt;error-manager&gt;
           &lt;only-once/&gt;
        &lt;/error-manager&gt;
  
        &lt;level name="DEBUG"/&gt;
  
        &lt;properties&gt;
           &lt;property name="implementationClassName"&gt;org.apache.log4j.ext.JoeSNMPTrapSender&lt;/property&gt;
           &lt;property name="managementHost"&gt;127.0.0.1&lt;/property&gt;
           &lt;property name="managementHostTrapListenPort"&gt;162&lt;/property&gt;
           &lt;property name="enterpriseOID"&gt;1.3.6.1.4.1.24.0&lt;/property&gt;
           &lt;property name="localIPAddress"&gt;127.0.0.1&lt;/property&gt;
           &lt;property name="localTrapSendPort"&gt;161&lt;/property&gt;
           &lt;property name="genericTrapType"&gt;6&lt;/property&gt;
           &lt;property name="specificTrapType"&gt;12345678&lt;/property&gt;
           &lt;property name="communityString"&gt;public&lt;/property&gt;
           &lt;property name="forwardStackTraceWithTrap"&gt;true&lt;/property&gt;
           &lt;property name="applicationTrapOID"&gt;1.3.6.1.4.1.24.12.10.22.64&lt;/property&gt;
        &lt;/properties&gt;
        &lt;formatter&gt;
           &lt;pattern-formatter pattern="%d,%p,[%t],[%c],%m%n"/&gt;
        &lt;/formatter&gt;
     &lt;/log4j-appender&gt;
     --&gt;
  
     &lt;!-- Emit events as JMX notifications
  
     &lt;log4j-appender name="JMX" class="org.jboss.monitor.services.JMXNotificationAppender"&gt;
        &lt;error-manager&gt;
           &lt;only-once/&gt;
        &lt;/error-manager&gt;
  
        &lt;level name="WARN"/&gt;
  
        &lt;properties&gt;
           &lt;property name="objectName"&gt;jboss.system:service=Logging,type=JMXNotificationAppender&lt;/property&gt;
        &lt;/properties&gt;
  
        &lt;formatter&gt;
           &lt;pattern-formatter pattern="%d %-5p [%c] %m"/&gt;
        &lt;/formatter&gt;
     &lt;/log4j-appender&gt;
     --&gt;
  
     &lt;!-- Security AUDIT Appender
  
     &lt;periodic-rotating-file-handler
           name="AUDIT"
           autoflush="true"
           file-name="${jboss.server.log.dir}/audit.log"
           suffix=".yyyy-MM-dd"
           append="true"&gt;
  
        &lt;error-manager&gt;
           &lt;only-once/&gt;
        &lt;/error-manager&gt;
  
        &lt;formatter&gt;
           &lt;pattern-formatter pattern="%d %-5p [%c] (%t:%x) %m%n"/&gt;
        &lt;/formatter&gt;
     &lt;/periodic-rotating-file-handler&gt;
     --&gt;
  
     &lt;!-- =============================================== --&gt;
     &lt;!-- Limit categories                                --&gt;
     &lt;!-- if enabling "trace" at root logger level,       --&gt;
     &lt;!-- use limit category settings to disable trace    --&gt;
     &lt;!-- for packages that you don't want to trace       --&gt;
     &lt;!-- =============================================== --&gt;
  
     &lt;!-- Limit the org.apache category to INFO as its DEBUG is verbose --&gt;
     &lt;logger category="org.apache"&gt;
        &lt;level name="INFO"/&gt;
     &lt;/logger&gt;
  
     &lt;!-- Limit the jacorb category to WARN as its INFO is verbose --&gt;
     &lt;logger category="jacorb"&gt;
        &lt;level name="WARN"/&gt;
     &lt;/logger&gt;
  
     &lt;!-- Limit JSF to INFO as its FINE is verbose --&gt;
     &lt;logger category="javax.enterprise.resource.webcontainer.jsf"&gt;
        &lt;level name="INFO"/&gt;
     &lt;/logger&gt;
  
     &lt;!-- Limit the org.jgroups category to WARN as its INFO is verbose --&gt;
     &lt;logger category="org.jgroups"&gt;
        &lt;level name="WARN"/&gt;
     &lt;/logger&gt;
  
     &lt;!-- Limit the org.quartz category to INFO as its DEBUG is verbose --&gt;
     &lt;logger category="org.quartz"&gt;
        &lt;level name="INFO"/&gt;
     &lt;/logger&gt;
  
     &lt;!-- Limit the com.sun category to INFO as its FINE is verbose --&gt;
     &lt;logger category="com.sun"&gt;
        &lt;level name="INFO"/&gt;
     &lt;/logger&gt;
  
     &lt;!-- Limit the sun category to INFO as its FINE is verbose --&gt;
     &lt;logger category="sun"&gt;
        &lt;level name="INFO"/&gt;
     &lt;/logger&gt;
  
     &lt;!-- Limit the javax.xml.bind category to INFO as its FINE is verbose --&gt;
     &lt;logger category="javax.xml.bind"&gt;
        &lt;level name="INFO"/&gt;
     &lt;/logger&gt;
  
     &lt;!-- Limit the springframework category to WARN--&gt;
     &lt;logger category="org.springframework"&gt;
        &lt;level name="WARN"/&gt;
     &lt;/logger&gt;
  
     &lt;!-- Limit JBoss categories
     &lt;logger category="org.jboss"&gt;
        &lt;level name="INFO"/&gt;
     &lt;/logger&gt;
     --&gt;
  
     &lt;!-- Or limit individual JBoss categories
     &lt;logger category="org.jboss.web"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.tm"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.jdbc"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.on"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.services"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.bootstrap"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.kernel"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.beans"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.injection"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.annotation"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.system"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.mx"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.jmx"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.invocation"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.classloader"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.classloading"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.deployment"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.deployers"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.dependency"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.metadata"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.detailed"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.logging"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.logbridge"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.aop"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.joinpoint"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.util"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.ha"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.resource"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.varia"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.net"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.security"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.console"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.wsf"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.ejb"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.ejb3"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.jpa"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.vfs"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.xb"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.naming"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.wsf"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.ws"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.mail"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.monitor"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.remoting"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.profileservice"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.cache"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.proxy"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.jms"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.messaging"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.webbeans"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.managed"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
     --&gt;
  
     &lt;!-- Limit Arjuna transaction manager --&gt;
     &lt;logger category="com.arjuna.ats"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
  
     &lt;!-- Limit Hibernate
     &lt;logger category="org.hibernate"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
     --&gt;
  
     &lt;!-- Limit Ajax4jsf
     &lt;logger category="org.ajax4jsf"&gt;
       &lt;level name="INFO" /&gt;
     &lt;/logger&gt;
     --&gt;
  
     &lt;!-- Limit JNP
      &lt;logger category="org.jnp"&gt;
        &lt;level name="INFO" /&gt;
      &lt;/logger&gt;
     --&gt;
  
  
     &lt;!-- Limit the JSR77 categories --&gt;
     &lt;logger category="org.jboss.management"&gt;
        &lt;level name="INFO"/&gt;
     &lt;/logger&gt;
  
     &lt;!-- Limit the verbose facelets compiler --&gt;
     &lt;!-- Also suppress error with legacy facelets (JBAS-7600) --&gt;
     &lt;logger category="facelets.compiler"&gt;
        &lt;level name="WARN"/&gt;
        &lt;filter&gt;
           &lt;not&gt;
              &lt;match pattern="Error\sLoading\sLibrary.*jsf-libs/jsf-impl"/&gt;
           &lt;/not&gt;
        &lt;/filter&gt;
     &lt;/logger&gt;
  
  
     &lt;!-- Limit the verbose ajax4jsf cache initialization
     &lt;logger category="org.ajax4jsf.cache"&gt;
        &lt;level name="WARN"/&gt;
     &lt;/logger&gt;
     --&gt;
     &lt;!-- Limit the verbose embedded jopr categories
     &lt;logger category="org.rhq"&gt;
        &lt;level name="WARN"/&gt;
     &lt;/logger&gt;
     --&gt;
     &lt;!-- Limit the verbose seam categories
     &lt;logger category="org.jboss.seam"&gt;
        &lt;level name="WARN"/&gt;
     &lt;/logger&gt;
     --&gt;
  
     &lt;!-- Show the evolution of the DataSource pool in the logs [inUse/Available/Max]
     &lt;logger category="org.jboss.resource.connectionmanager.JBossManagedConnectionPool"&gt;
       &lt;level name="TRACE"/&gt;
     &lt;/logger&gt;
     --&gt;
  
     &lt;!-- Category specifically for Security Audit Provider
     &lt;logger category="org.jboss.security.audit.providers.LogAuditProvider" additivity="false"&gt;
       &lt;level name="TRACE"/&gt;
       &lt;appender-ref ref="AUDIT"/&gt;
     &lt;/logger&gt;
     --&gt;
  
     &lt;!-- Limit the org.jboss.serial (jboss-serialization) to INFO as its DEBUG is verbose --&gt;
     &lt;logger category="org.jboss.serial"&gt;
        &lt;level name="INFO"/&gt;
     &lt;/logger&gt;
  
     &lt;!-- Decrease the priority threshold for the org.jboss.varia category
     &lt;logger category="org.jboss.varia"&gt;
       &lt;level name="DEBUG"/&gt;
     &lt;/logger&gt;
     --&gt;
  
     &lt;!-- Enable JBossWS message tracing
     &lt;logger category="org.jboss.ws.core.MessageTrace"&gt;
       &lt;level name="TRACE"/&gt;
     &lt;/logger&gt;
     --&gt;
  
     &lt;!-- Enable System log message tracing
     &lt;logger category="org.jboss.system"&gt;
       &lt;level name="TRACE"/&gt;
     &lt;/logger&gt;
     &lt;logger category="org.jboss.ejb.plugins"&gt;
       &lt;level name="TRACE"/&gt;
     &lt;/logger&gt;
     --&gt;
  
     &lt;!--
         | Logs these events to SNMP:
             - server starts/stops
             - cluster evolution (node death/startup)
             - When an EJB archive is deployed (and associated verified messages)
             - When an EAR archive is deployed
  
     &lt;logger category="org.jboss.system.server.Server"&gt;
        &lt;level name="INFO"/&gt;
        &lt;handlers&gt;
           &lt;handler-ref name="TRAP_LOG"/&gt;
        &lt;/handlers&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.ha.framework.interfaces.HAPartition.lifecycle"&gt;
        &lt;level name="INFO"/&gt;
        &lt;handlers&gt;
           &lt;handler-ref name="TRAP_LOG"/&gt;
        &lt;/handlers&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.deployment.MainDeployer"&gt;
        &lt;level name="ERROR"/&gt;
        &lt;handlers&gt;
           &lt;handler-ref name="TRAP_LOG"/&gt;
        &lt;/handlers&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.ejb.EJBDeployer"&gt;
        &lt;level name="INFO"/&gt;
        &lt;handlers&gt;
           &lt;handler-ref name="TRAP_LOG"/&gt;
        &lt;/handlers&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.deployment.EARDeployer"&gt;
        &lt;level name="INFO"/&gt;
        &lt;handlers&gt;
           &lt;handler-ref name="TRAP_LOG"/&gt;
        &lt;/handlers&gt;
     &lt;/logger&gt;
     --&gt;
  
      &lt;!-- Reduce org.mc4j stuff in the logs --&gt;
     &lt;logger category="org.mc4j"&gt;
        &lt;level name="WARN"/&gt;
     &lt;/logger&gt;
  
     &lt;!-- Clustering logging --&gt;
     &lt;!-- Uncomment the following to redirect the org.jgroups and
        org.jboss.ha categories to a cluster.log file.
  
     &lt;size-rotating-file-handler
           file-name="${jboss.server.log.dir}/cluster.log"
           name="CLUSTER"
           append="false"
           rotate-size="500k"
           max-backup-index="5"
           autoflush="true"&gt;
  
        &lt;error-manager&gt;
           &lt;only-once/&gt;
        &lt;/error-manager&gt;
  
        &lt;formatter&gt;
           &lt;pattern-formatter pattern="%d %-5p [%c] %m%n"/&gt;
        &lt;/formatter&gt;
     &lt;/size-rotating-file-handler&gt;
  
     &lt;logger category="org.jgroups"&gt;
        &lt;level name="DEBUG" /&gt;
        &lt;handlers&gt;
           &lt;handler-ref name="CLUSTER"/&gt;
        &lt;/handlers&gt;
     &lt;/logger&gt;
  
     &lt;logger category="org.jboss.ha"&gt;
        &lt;level name="DEBUG" /&gt;
        &lt;handlers&gt;
           &lt;handler-ref name="CLUSTER"/&gt;
        &lt;/handlers&gt;
     &lt;/logger&gt;
     --&gt;
  
     &lt;!-- This is a temporary workaround for https://jira.jboss.org/jira/browse/EMBJOPR-280 and
          should be removed once that bug if fixed in the bundled admin-console war. --&gt;
     &lt;logger category="org.rhq.plugins.jbossas5.ApplicationServerComponent"&gt;
        &lt;level name="FATAL"/&gt;
     &lt;/logger&gt;
  
     &lt;!-- ======================= --&gt;
     &lt;!-- Setup the Root category --&gt;
     &lt;!-- ======================= --&gt;
  
     &lt;root-logger&gt;
        &lt;!-- Set the root logger priority via a system property, with a default value. --&gt;
        &lt;level name="${jboss.server.log.threshold:INFO}"/&gt;
        &lt;handlers&gt;
           &lt;handler-ref name="CONSOLE"/&gt;
           &lt;handler-ref name="FILE"/&gt;
        &lt;/handlers&gt;
     &lt;/root-logger&gt;
  
  &lt;/logging&gt;
  </code></pre>
  
  <p>and this is logging.properties</p>
  
  <pre><code># Additional logger names to configure (root logger is always configured)
  #loggers=org.jboss.whatever,org.jboss.foo
  loggers=org.jboss.system.server.ServerInfo
  
  # Root logger level
  logger.level=${jboss.boot.server.log.level:INFO}
  # Root logger handlers
  logger.handlers=CONSOLE, FILE
  
  # Allow debug logging from ServerInfo to get the system properties dump
  logger.org.jboss.system.server.ServerInfo.level=${jboss.boot.server.log.serverinfo.level:DEBUG}
  
  # Console handler configuration
  handler.CONSOLE=org.jboss.logmanager.handlers.ConsoleHandler
  handler.CONSOLE.properties=autoFlush
  handler.CONSOLE.level=${jboss.boot.server.log.console.level:INFO}
  handler.CONSOLE.autoFlush=true
  handler.CONSOLE.formatter=PATTERN
  
  # Boot log file handler configuration
  handler.FILE=org.jboss.logmanager.handlers.FileHandler
  handler.FILE.level=${jboss.boot.server.log.file.level:DEBUG}
  handler.FILE.properties=autoFlush,fileName
  handler.FILE.autoFlush=true
  handler.FILE.fileName=${jboss.boot.server.log.dir}/boot.log
  handler.FILE.formatter=PATTERN
  
  # Formatter pattern configuration
  formatter.PATTERN=org.jboss.logmanager.formatters.PatternFormatter
  formatter.PATTERN.properties=pattern
  formatter.PATTERN.pattern=%d{HH:mm:ss,SSS} %-5p [%c{1}] %s%E%n
  </code></pre>
  
  <p>How can I control the size of <code>boot.log</code> file</p>
  
  <p>Anyone facing same.... thanks...!</p>