[logback-user] Set Level per Logger AND Appender?
listid at qos.ch
Thu Oct 30 15:37:10 CET 2008
Robert Elliot wrote:
> It sounds like that would allow the behaviour I would need, thanks
> very much, I'll use that in future.
> I have to confess, however, that it feels rather messy and complicated
> to maintain. What do you think of the idea of specifying a level on
> the combination of logger and appender (effectively the appender-ref)?
> With the proviso that you can still specify it on the logger alone as
> a shorthand for specifying it on all appender-refs? I'm tempted to
> protoptype it if you would consider the approach, it would allow a
> nice clean configuration based on inheritance, and would work with
> existing logback.xml files as well.
I can't give you an answer without a more concrete example. How would
the config file look like?
By the way, don't worry about parsing the config file. Joran,
logback's configuration system is extremely flexible, if you can
express it in XML, Joran can parse and make sense of it.
Logback: The reliable, generic, fast and flexible logging framework for Java.
More information about the Logback-user