Sorry for the double post, gmail pulled a trick on me :) Just ignore the other post.<br><br>Hi<br><br>I want to revisit this subject and theme. <a href="http://marc.info/?l=logback-user&amp;m=121130259107132&amp;w=2">I saw that this thread ended 20th May 2008</a>, but I did not find any conclusions on your discussion. The reason I find this subject interesting, is that I have use case which I can&#39;t seem to solve in any other way then setting a turbofilter on an appender.<br>
<br>This is situation:<br>One enterprise web application, which today uses a proprietary, home built, logging framework, logs statement to both file and to a database via an EJB. I have started the work to replace this logging framework with LogBack/SL4J.<br>
<br>Our new design would include file appender, and a jms appender which posts to a jms queue.<br><br>Example of log statements in the current solution:<br>&lt;codeSnippet&gt;            <br>                //The logger is the file logger<br>
                logger.debug(&quot;Bar property was not defined in abc.properties&quot;);<br><br>                //FooLog is responsible for sending log message to the EJB<br>                LogContext lctx = new LogContext(&quot;webapplication&quot;, getClass().getName(),
 &quot;theFooBarMethod()&quot;, LayerType.PRESENTATION);<br>                FooLog.log(logcontext, 6001, new String[] { &quot;Bar property was not defined in abc.properties&quot; }, null);<br>&lt;/codeSnippet&gt;<br><br>
This type of logging I want to change to this kind of logging:<br>&lt;codeSnippet&gt;<br>                logger.debug(&quot;Bar property was 
not defined in abc.properties&quot;);<br>&lt;/codeSnippet&gt;<br>
<br>This is my use case:<br>We need to separate which log statements that goes to file and which goes to JMS (and eventually to database) <br><br>This is how I want to solve it:<br><br>This would only go to file<br>&lt;codeSnippet&gt;<br>
                logger.debug(&quot;Bar property was not defined in abc.properties&quot;);<br>&lt;/codeSnippet&gt;<br><br>But this would go to both file and jms<br>&lt;codeSnippet&gt;<br>                Marker JMS_MARKER = MarkerFactory.getMarker(&quot;JMS&quot;);<br>
                logger.debug(JMS_MARKER, &quot;Bar property was not defined in abc.properties&quot;);<br>&lt;/codeSnippet&gt;<br><br>This could be obtained by doing something like this:<br><br>&lt;appender name=&quot;Queue&quot; class=&quot;com.a.b.c.log.CustomJMSQueueAppender&quot;&gt;<br>
    &lt;InitialContextFactoryName&gt;org.apache.activemq.jndi.ActiveMQInitialContextFactory&lt;/InitialContextFactoryName&gt;<br>    &lt;ProviderURL&gt;tcp://localhost:61616&lt;/ProviderURL&gt;<br>    &lt;QueueConnectionFactoryBindingName&gt;ConnectionFactory&lt;/QueueConnectionFactoryBindingName&gt;<br>
    &lt;QueueBindingName&gt;MyQueue&lt;/QueueBindingName&gt;<br>    <br>    &lt;turboFilter class=&quot;ch.qos.logback.classic.turbo.MarkerFilter&quot;&gt;<br>      &lt;Marker&gt;JMS&lt;/Marker&gt;<br>      &lt;OnMismatch&gt;DENY&lt;/OnMismatch&gt;<br>
    &lt;/turboFilter&gt;<br>      <br>  &lt;/appender&gt;<br><br>To end this; Is my use case covered in LogBack framework somehow, without waiting for this kind of features?<br>