Generating dynamic log file with dynamic file name
Joined: Dec 21, 2007
I need to generate the log file every time with dynamic log file name.
As per my understanding it cannot be done from log4.properties as the name of the file is constant which is defined in the properties file.
In that case i need to write the custom File appender which generates the log file with dynamic name.
Let me know if there is any other good way of doing and also provide me with some good sample example.
Joined: Oct 10, 2000
What is the dynamic file name based on? System properties?
Joined: Jul 19, 2009
If you want to add timestamp with the log file name then