File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes Log4j. Worker threads logging to seperate files Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "Log4j. Worker threads logging to seperate files" Watch "Log4j. Worker threads logging to seperate files" New topic
Author

Log4j. Worker threads logging to seperate files

Mark Gargan
Greenhorn

Joined: Oct 03, 2005
Posts: 1
Hi folks,

I've a multi-threaded batch process that uses a number of worker threads. Is there anyway to setup Log4j so that every time a worker is given
a unit of work to do that it can log to a different file using some information about the unit of work. Basically I'm looking to log to a unique
file every time the worker is used?
If this is possible or anyone can suggest a work around I would really appreciate it.

Thanks,
Mark.
 
 
subject: Log4j. Worker threads logging to seperate files
 
Threads others viewed
Log4j
ThreadLocal & Servlet - Store XML parser for reuse?
Log4j/Chainsaw
log4j config file setup
Log4j, log to file, which can be deleted
developer file tools