-
Sep 28th, 2012, 01:56 PM
#1
Multiple Loggers for Spring batch application with 3 different jobs
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.
- Job 1 - Reads file from folder , validates file and starts a job.
- Job 2 - Job started Started by Cron expression, reads from table and writes to a file.
- 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?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules