0

snippet from standalone.xml,

**below configuration is not yielding the result.

<file relative-to="jboss.server.log" path="server.log"/>
<suffix value=".yyyy-MM-dd"/>
<rotate-size value="500m"/>
<append value="true"/>
<max-backup-index value="5"/>
Jefin Joy
  • 23
  • 1
  • 4

2 Answers2

0

The periodic-size-rotating-file-handler does not purge backups when the suffix attribute is used. See the Wildscribe documentation. This has been requested, but there is not really a good way to determine which files would need to be purged.

James R. Perkins
  • 16,800
  • 44
  • 60
0

You might need to use the rotating file handler right from within your standalone.xml, like below:

<profile>
  <subsystem xmlns="urn:jboss:domain:logging:3.0">    
    <periodic-rotating-file-handler name="FILE" autoflush="true">
      <formatter>
        <named-formatter name="PATTERN"/>
      </formatter>
      <file relative-to="jboss.server.log.dir" path="server.log"/>
      <suffix value=".yyyy-MM-dd"/>
      <append value="true"/>
    </periodic-rotating-file-handler>
  </subsystem>
</profile>
HackerMonkey
  • 443
  • 3
  • 13