Creating a new log file every time my program is run
- by Bernhard V
Hi,
I am using the Apache commons logging library and log4j to generate my log files.
Now I want to create a new file every time I run my program. The current count should be appended to the log file's name.
For example:
program_1.log
program_2.log
program_3.log
Do you know how I could achieve this?