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

    Configuration for server.log file in Jboss 7.1.1

    peter binh Newbie

      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

       

      [quote]

       

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

                      <formatter>

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

                      </formatter>

                      <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"/>

      </periodic-rotating-file-handler>

       

       

      [/quote]

       

      What is the max size of the server.log ?

       

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