Results 1 to 2 of 2

Thread: Logging information of different Job

  1. #1
    Join Date
    Dec 2007
    Posts
    25

    Default Logging information of different Job

    Hello,

    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.)

  2. #2
    Join Date
    Jun 2005
    Posts
    4,232

    Default

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •