We have several jobs that run concurrently that have to use the same config info for log4j. They are all dumping the logs into one file using the same appender. Is there a way to have each job dynamically name its log file so they stay seperate?
Thanks
Tom
Can you pass a Java system property for each job? If so, you can parameterize like this:
And then in your log4j.properties:
You could populate the Java system property with a value from the host’s environment (for example) that would uniquely identify the instance of the job.