I am using java.util.logging for logging (I don\'t want to use log4j or anything else).
This is my complete private logging.properties:
I found that unless you set the format via the config, it does not apply the formatter. I tested this on JDK 11.
handlers= java.util.logging.FileHandler
.level= INFO
java.util.logging.FileHandler.pattern = my.log
java.util.logging.FileHandler.limit = 500000
java.util.logging.FileHandler.count = 40
java.util.logging.FileHandler.formatter = com.mycomp.myproj.LogFormatter
com.mycomp.myproj.LogFormatter.format = %n
i.e. add the last line com.mycomp.myproj.LogFormatter.format = %n