Hi all
I would like to log to multiple, dynamic log targets.
Background:
My WebApp - which communicates with users on one side - connects to a legacy system on the back end side. After each user session the legacy system expects a log for the session.
I went ahead and wrote a custom appender which collects the log output for a single user session and is able to transfer it to the backend.
For each session I must therefore request a logger named after the session id and attach a new instance of my appender to it.
So far, this works fine: Individual output goes to the back end and cumulated output via the root logger to anywhere.
But then I found out that I can't get rid of the myriads of session loggers I'm creating -- not good!
Apparently I'm not the only one ever attempting that, but hours of searching haven't proved to be very fruitful...
I found something about individual hierarchies. Appart from being largely undocumented these seem to be targeted at stuff like web server instances - not to many of which hang around most of the time.
Is there an easy way to solve my problem using log4j that has eluded me so far?
Or is it just not meant to satisfy many individual and concurrent logs?
Thanks for your help Marcel
-- Marcel Bucher
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
