1 Reply Latest reply on Aug 9, 2013 1:52 PM by jamezp

    Configuration for server.log file in Jboss 7.1.1


      hi all,


      Currently, I using the Jboss 7.1.1 but I do not know how to configura the size for server.log file for it. I expect that when the size of server.log file is exceed 10MB, it will split to other file and the maximum of files is 10.


      I tried to configure for the configuration in standalone.xml file like below but it not work




      <periodic-rotating-file-handler name="FILE">


                          <pattern-formatter pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p %C.%M [%c] (%t) %s%E%n"/>


                      <file relative-to="jboss.server.log.dir" path="server.log"/>

                      <suffix value=".yyyy-MM-dd"/>

                     <rotate-size value="1000k"/>

                      <max-backup-index value="20"/>

                      <append value="true"/>






      What is the max size of the server.log ?


      One more thing, I defined a user handler but the log is not written properly

        • 1. Re: Configuration for server.log file in Jboss 7.1.1

          The periodic-rotating-file-handler only rotates on date. If you want to rotate on size you need to use a size-rotating-file-handler.


          Can you explain what you mean by a user handler? My guess would be you mean a custom-handler, in which case make sure the handler is attached to a logger like the root-logger.



          James R. Perkins