I migrated a small REST API application to Helidon MP which is using java.util.logging. I try to configure a rolling file appender which simply creats a new file per calendar day.
The app previously used Log4j2 where this was possible, but I cannot find a way how to do this with the java.util.logging.FileHandler. It seems only to be able to rotate by file size, see below:
java.util.logging.FileHandler.formatter=java.util.logging.SimpleFormatter
java.util.logging.FileHandler.pattern=c:/temp/logs/fwa.log
java.util.logging.FileHandler.limit=50000
java.util.logging.FileHandler.count=1
I would like to have the following:
- fwa.log
- fwa.log.YYYY-MM-DD
- etc.
I get:
- fwa.log.0
- fwa.log.1
- fwa.log.2
- etc.