Hi I currently have this in my .properties file:
java.util.logging.FileHandler.pattern = %h/programName%u%g.log
I would also like to append a timestamp / username to this so its easy to identify log files does anyone know how?
Hi I currently have this in my .properties file:
java.util.logging.FileHandler.pattern = %h/programName%u%g.log
I would also like to append a timestamp / username to this so its easy to identify log files does anyone know how?
Copyright © 2021 Jogjafile Inc.
Since the FileHandler methods don't have a % substitution variable for date, my suggestion would be to format a string that includes the date before passing the string to FileHandler. Something like: