title: How to rotate and zip log file using size-rotating-file-handler in wildlfy?
body: <p>We want to use size-rotating-file-handler available inside logging subsystem of wildfly for size based rotation and compression. But we are able to rotate the file but not able to do compression or zip . Is there any alternate in wildfly so that we can achieve log rotation as well as zipping simultaneously? </p>
  
  <p>We have followed and tried below link but didn't get any luck:
  <a href="https://developer.jboss.org/thread/278779" rel="nofollow noreferrer">https://developer.jboss.org/thread/278779</a></p>
  
  <p>Note: We are using wildlfy-14 version.</p>
  
  <p>We have used below CLI configuration for same:</p>
  
  <pre><code>/profile=full-ha/subsystem=logging/periodic-rotating-file-handler=FILE:remove()
  /profile=full-ha/subsystem=logging/size-rotating-file-handler=FILE:add(name=FILE,autoflush=false,file={relative-to=jboss.server.log.dir,path=server.log},append=true,named-formatter=PATTERN,rotate-size=10m,max-backup-index=15,level=DEBUG)
  /profile=full-ha/subsystem=logging/logger=org.hibernate.orm.deprecation:add(level=ERROR)
  
  </code></pre>