Logrotate does the job but there is a lag because the rotation of logorate is is out of phase with wildfly. The logs go into the server.1.log file instead of on server.log.
At least the logs are deleted / compressed according to the logorate configuration.
A native solution would have been better...
Best regard