Announcement Announcement Module
Collapse
No announcement yet.
Logging information of different Job Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

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

    Comment

    Working...
    X