We have multiple batch jobs and using log4j for logging for each on of them. The issue is whenver a job is run empty log files are being created for all of the non-running jobs. Is there a way I can specify to create only log files for the currently running job?
Asked
Active
Viewed 743 times
1 Answers
0
You can always create your own appender if you need some special functionality. Take a look at this: How to create a own Appender in log4j?
Also, when you say jobs, what exactly do you mean? Do you have multiple processes running in their own JVMs?