I am using Java util logging to log information - I am also using a custom formatter - the custom formatter works fine however the issue that I am facing is that the log file refreshes each time and I loose the old information. The following is the structure of my property file. How can I ensure that the information gets logged to the same file and a new file does not get generated each time.
# The following creates two handlers
# Set the default logging level for the root logger
.level = INFO
# Set the default logging level for new FileHandler instances
java.util.logging.FileHandler.level = INFO
# Set the default formatter for new ConsoleHandler instances
java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter
# The custom logging properties file is loaded by specifying a system property on the command line:
# java -Djava.util.logging.config.file=mylogging.properties <class>
8/22/2022 - Mon
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.