How do you configure log4j.properties to have exactly one logfile per run of an app. I\'ve read that you should use a timestamp in the filename but that will create many fil
To start a new log file on app startup you may want to use OnStartupTriggeringPolicy
Triggering Policies
Example of XML config:
C:/Logs/ %d{dd/MM/yyyy HH:mm:ss} [%-5p/%t]: %C{1}(%L): %m%n
Works well for me