This content has been marked as final.
Show 1 reply
-
1. Re: Wildfly 9 - log configuration
jamezp Oct 24, 2016 1:51 PM (in response to dominique_claes)You could use a periodic-size-rotating-file-handler which allows for rotation on boot. One thing to note is on WildFly 9 it seems to rotate the file twice during boot. This seems to be fixed in WildFly 10 however.
/subsystem=logging/periodic-size-rotating-file-handler=test:add(rotate-on-boot=true, append=true, autoflush=true, max-backup-index=20, suffix=".yyyy-MM-dd", named-formatter=PATTERN, file={relative-to=jboss.server.log.dir, path="test.log"}) /subsystem=logging/root-logger=ROOT:add-handler(name=test)
--
James R. Perkins