Hi Magnus,

I'd follow Jake's recommendation and implement a session specific filter+appender combination. Actually, I've done this at a customer site recently and it worked pretty well. A repository selector addresses a different problem.

At 04:36 PM 4/25/2006, Jacob Kjome wrote:

I don't think I've heard of anyone defining a repository selector that had two
distinct criteria for choosing the logger repository. Only one selector can be
installed at any given time.  How would Log4j know which logger repository to
choose? The two standard choices are by an App's JNDI tree and by classloader. The latter is problematic and can cause classloader issues. The former is what
has been adopted as a standard solution in Log4j-1.3.  If you come up with a
technique for choosing multiple logger repositories per/app, I'd be very
interested to see it.  I can't think of how it might be implemented, though.

I still think using a filter one or more appenders within a single logger
repository is a viable option. That's where I would focus my efforts if I were
to implement what you are proposing.

Jake

--
Ceki Gülcü
http://ceki.blogspot.com/


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

Reply via email to