Create a new log file every time my program is run
Posted
by Bernhard V
on Stack Overflow
See other posts from Stack Overflow
or by Bernhard V
Published on 2010-06-01T13:37:06Z
Indexed on
2010/06/10
6:42 UTC
Read the original article
Hit count: 206
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?
© Stack Overflow or respective owner