Ceki,
That would certainly explain why I couldn't find any detailed info :) The
RoutingAppender concept that you describe is quite interesting though - it
would certainly address our particular needs. In the short term I think
we'll have to go with existing logback configuration and capabilities
(
Hi Shane,
You could not have possibly be aware of RoutingAppender because it does
not exist yet. For the moment, it's just an idea for solving the problem
you described in your message. Browsing through logback documentation
and source code should give you ideas about writing a RoutingAppender.
Hi Ceki,
Thanks for your prompt response. I wasn't aware of routing appenders - so
this is something that I shall certainly look into. My main motivation for
wanting to do this was primarily so that I could control the verboseness of
logging for the same logger depending on the destination appende
Hello Shane,
There are probably multiple approaches to this problem. It should be not
too difficult to write a RoutingAppender which can perform the type of
routing operation you describe. Here is how the config file would look like:
By the way, could you pr
Folks,
I've been tinkering with both log4j and more recently logback and I was
wondering whether or not it is possible to configure it in such a way that
it would be possible for a single logger to write to multiple appenders
using different LEVEL restrictions on a per-appender-ref basis. I
apprec