Ceki,<div><br></div><div>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 (which meet the vast majority of our logging requirements) and investigate some sort of RoutingAppender solution in the medium to long term.</div>

<div><br></div><div>In the meantime, thanks for your help. Much appreciated.</div><div><br></div><div>Regards,</div><div><br></div><div>Shane<br><br><div class="gmail_quote">On 6 May 2012 11:53, ceki <span dir="ltr"><<a href="mailto:ceki@qos.ch" target="_blank">ceki@qos.ch</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Shane,<br>
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. Of course, once you get started you can ask for feedback here.<div class="im HOEnZb">

<br>
<br>
Cheers,<br>
-- <br>
Ceki<br>
<a href="http://twitter.com/#!/ceki" target="_blank">http://twitter.com/#!/ceki</a><br>
<br></div><div class="im HOEnZb">
On 05.05.2012 23:35, Shane Kelly wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Ceki,<br>
<br>
Thanks for your prompt response. I wasn't aware of routing appenders -<br>
so this is something that I shall certainly look into. My main<br>
motivation for wanting to do this was primarily so that I could control<br>
the verboseness of logging for the same logger depending on the<br>
destination appender without having to create several (almost duplicate)<br>
appender configurations (whilst setting slightly different threshold<br>
levels for each) - as far as possible I only wanted to create a single<br>
appender configuration entry for each distinct destination - i.e.<br>
Console, RollingFile etc. So, for example, I might have a logger in a<br>
Java class which generates log messages of varying levels, but I only<br>
want INFO and above to go to a Console appender, whilst I want DEBUG and<br>
above to be written to a RollingFileAppender - for the same class -<br>
simply because I don't want to clog up STDOUT with too much information<br>
(unless I need to) but have a separate file to fall back to which does<br>
contain a complete set of log messages for reference/debug at a later date.<br>
<br>
Is there any documentation describing how to create routing appenders (I<br>
had a quick look and couldn't see anything) or is there an example of<br>
such an appender lurking somewhere within the source that you could<br>
point me towards?<br>
<br>
Regards,<br>
<br>
Shane<br>
<br>
</blockquote>
<br></div><div class="HOEnZb"><div class="h5">
______________________________<u></u>_________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch" target="_blank">Logback-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" target="_blank">http://mailman.qos.ch/mailman/<u></u>listinfo/logback-user</a><br>
</div></div></blockquote></div><br></div>