logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Curt Arnold <carn...@apache.org>
Subject Re: each thread needs a log4j file
Date Fri, 22 Aug 2008 15:53:25 GMT

On Aug 22, 2008, at 8:39 AM, Reza Razavipour wrote:

> All,
>
> I have a thread pool and a set of managed objects. I need to have one
> log4j file for each of the managed objects. I need to do this
> dynamically since the number of managed objects will vary during the
> life of the application.
>
> Any thoughts on this?
>
> Thanks
> Reza
>


This type of use case was one of the motivations for the  
MultiFileAppender which was one appender that would manage a pool of  
open files at a time and would select the appropriate file based on  
examination of the logging event.  The initial development stalled for  
lack of feedback, though I have been meaning to get back to it and  
hope to after the log4j 1.2.16 release.  The current code is available  
at http://svn.apache.org/repos/asf/logging/sandbox/log4j/multifile.   
The bug report for discussion of the MFA is https://issues.apache.org/bugzilla/show_bug.cgi?id=45165

.  Also, search the archives for MultiFileAppender for earlier  
discussion.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message