This was discussed a lot on this list. Search in archive, keywords: MDC, 
RepositorySelector, different files.

We currently discuss on the developper list the introduction of a 
MultiFileAppender which addresses just your need. But the work is still in 
progress...

Heri

> -----Original Message-----
> From: sudhakardvvn [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 11, 2006 1:49 PM
> To: log4j-user@logging.apache.org
> Subject: [SPAM (Bayesain Analysis)] - logging into different files -
> Bayesian Filter detected spam
> 
> 
> 
> Have an application where the number of threads that get launched are
> dynamic.  Could be anywhere from 1 to 300 threads that could 
> get launched at
> runtime.  I would like to know if it is possible to setup a 
> file appender
> for each thread and have the indiv threads write to their own 
> file appender. 
> Currently all threads write to one log file using 1 file appender in a
> log4j.properties file but would like ability for each thread 
> to log its own
> messages for easier debugging. Any good sites or source would 
> be great. Any
> help would be appreciated.  
> 
> -- 
> View this message in context: 
> http://www.nabble.com/logging-into-different-files-tf2422885.h
> tml#a6754850
> Sent from the Log4j - Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to