1

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?

Greg
  • 147
  • 1
  • 5
  • 18

1 Answers1

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?

Community
  • 1
  • 1
JohnnyK
  • 1,103
  • 6
  • 10