Christophe Verré wrote:The funny thing is that the pattern should default to %h/java%u.log, so that doesn't explain why you have myApp.log.0.1.
Check you don't have java.util.logging.FileHandler.pattern set somewhere. Make sure java.util.logging.FileHandler.limit is not set either, which would explain why a file number is appended to the name.
You are right about the FileHandler.limit. When I changed it to 1, the %g number stopped appearing in the file name.
I have found that the %u was appearing in the file name because I was defining 2 FileHandlers with the same FileHandler.pattern. If I only define one, the %u does not appear in the file name. However, if I define 2 with the same pattern, and do not include %u in the pattern, the %u appears at the end of the file name, after the log. Apparently, it defaults to java.log.%u, not java%u.log, which I would prefer.
So, I think my problems are basically solved. As long as I only define one FileHandler with the same patter, the %u term does not appear in the file name. If I set FileHandler.limit=1, the %g term disappears.