java.util.logging.Logger override (overwrites) the file data instead of add to end of file.
Is this correct? should I create 1 file for each time I initialize the app and the log system?
If not, how do I set it to write to the end of the file?
java.util.logging.FileHandler.append=true
The append specifies whether the FileHandler
should append onto any existing files (defaults to false
).
FileHandler Doc
There are other properties you have control over like the size of log files and how many to cycle through but I think that property is the one you are concerned with.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With