Feb 20th, 2008, 10:55 PM
Logging information of different Job
I want to know that is there any way to get separate job log for different jobs run asynchronously (i.e. in parallel). I am more interested in the logger information provided by batch environment. Currently, as per my observation, Batch logger provides same log information (file or console) for all the jobs running simultaneously.
(Being to specific: I donít want to write logger for individual jobs. I want to have same logger information that is provided by Batch environment but filtered out for each job.)
Feb 21st, 2008, 03:04 AM
We are using commons logging (with log4j by default) the same as all Spring projects. The only easy way to get separate logs from different threads is to put them all in one file and then filter them out by thread id. Look in the log4j documentation to see how to do that, and maybe look at Chainsaw if you want a GUI to look at logs with more complex filters.