Hi<div><br></div><div>Is it possible to configure theƂ SiftingAppender to use parameters from MDC other than the discriminator ?</div><div><br></div><div>I&#39;d like to achive the following :</div><div>in java:</div><div><div>
<span class="Apple-tab-span" style="white-space:pre">                </span>MDC.put(&quot;logger&quot;, loggerName);</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>MDC.put(&quot;file&quot;, fileName);</div></div>
<div><span class="Apple-tab-span" style="white-space: pre; ">                </span>MDC.put(&quot;pattern&quot;, pattern);</div><div><br></div><div>in config:</div><div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>&lt;appender name=&quot;SIFT&quot; class=&quot;ch.qos.logback.classic.sift.SiftingAppender&quot;&gt;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>&lt;discriminator&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>&lt;Key&gt;logger&lt;/Key&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>&lt;DefaultValue&gt;default&lt;/DefaultValue&gt;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>&lt;/discriminator&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>&lt;sift&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>&lt;appender name=&quot;FILE-${logger}&quot; class=&quot;ch.qos.logback.core.FileAppender&quot;&gt;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>&lt;File&gt;${file}&lt;/File&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>&lt;Append&gt;true&lt;/Append&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>&lt;Encoding&gt;UTF-8&lt;/Encoding&gt;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>&lt;BufferedIO&gt;true&lt;/BufferedIO&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>&lt;ImmediateFlush&gt;true&lt;/ImmediateFlush&gt;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>&lt;layout class=&quot;ch.qos.logback.classic.PatternLayout&quot;&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span>&lt;Pattern&gt;{pattern:-%d [%thread] %level %mdc %logger{35} - %msg%n}&lt;/Pattern&gt;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>&lt;/layout&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>&lt;/appender&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>&lt;/sift&gt;</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>&lt;/appender&gt;</div></div><div><br></div><div>Thanks</div><div><br></div><div>Gabor Dolla</div><div><br></div>