Hi There,

We have a single Spring batch application which consists of 3 different jobs: The following jobs have their own processors, writers etc. Each job does different things i.e. they are unique. The jobs are run at different times.

  1. Job 1 - Reads file from folder , validates file and starts a job.
  2. Job 2 - Job started Started by Cron expression, reads from table and writes to a file.
  3. Job 3 - Reads file from folder , validates file and starts a job.


WE want separate log files for the above 3 jobs. The log file should contain all logging done by Spring batch framework for each of the above jobs in a separate file.

I can configure 3 different appenders in log4j config file and manage logging to the custom components we create (like processors/writers etc) but would also need the Spring batch logging like job/step related logging to be also on the respective log file.

Is it possible? If so how do we implement it?