2008/9/16 raulvk.soa <[EMAIL PROTECTED]>:
> Nevermind. Sorry I got confused. Obviously you can make different log
> categories use the same Appender!
>
> That would be a temporary solution, as architecturally speaking we would be
> overloading the log4j with an awful amount of loggers, which I am not happy
> doing.
>
> Do you think it is feasible to achieve this by extending the Logger class
> and using it as a processor? What method would I have to override? Any
> special considerations? I think I may attempt to do this...

I'm not quite sure I follow. Claus's example uses a single Logger
called "ValidatingAgainstXMLSchema" or whatever. i.e. you can use a
single Logger if you want - the URI log:foo defines the logger to use.
There's not one per message or anything like that. Each different log
URI uses a different logger, so its up to you to define how many
different logger/categories you want to use.

-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://open.iona.com

Reply via email to