Hi All,<br><br>Is there some way to make a reference to an encoder or pattern defined previously via a reference or similar?<br>I&#39;ve tried with the bellow configuration but it does not work :-(<br><br><span style="font-family: courier new,monospace;">&lt;configuration&gt;</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">    &lt;encoder <span style="color: rgb(255, 0, 0);">name=&quot;ENC-1&quot;</span> class=&quot;ch.qos.logback.classic.encoder.PatternLayoutEncoder&quot;&gt;<br>        &lt;Pattern&gt;%date %.-1level [%mdc{SessionID}] [%t] %logger{32} - %m%n%ex{0}&lt;/Pattern&gt;<br>

    &lt;/encoder&gt;<br>    <br>    &lt;encoder <span style="color: rgb(255, 0, 0);">name=&quot;ENC-2&quot;</span> class=&quot;ch.qos.logback.classic.encoder.PatternLayoutEncoder&quot;&gt;<br>        &lt;Pattern&gt;%date %.-1level [%mdc{SessionID}] [%t] %logger{32} - %m%n&lt;/Pattern&gt;<br>

    &lt;/encoder&gt;<br><br>    &lt;appender name=&quot;STDOUT-1&quot; class=&quot;ch.qos.logback.core.ConsoleAppender&quot;&gt;<br>        <span style="color: rgb(255, 0, 0);">&lt;encoder-ref ref=&quot;ENC-1&quot;/&gt;</span><br>

    &lt;/appender&gt;<br>    <br>    &lt;appender name=&quot;STDOUT-2&quot; class=&quot;ch.qos.logback.core.ConsoleAppender&quot;&gt;<br>        <span style="color: rgb(255, 0, 0);">&lt;encoder-ref ref=&quot;ENC-2&quot;/&gt;</span><br>

    &lt;/appender&gt;<br><br></span><span style="font-family: courier new,monospace;">    &lt;logger name=&quot;X.Y&quot;&gt;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        &lt;level value=&quot;INFO&quot; /&gt;</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">        &lt;appender-ref ref=&quot;STDOUT-2&quot; /&gt;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    &lt;/logger&gt;</span><br style="font-family: courier new,monospace;">

<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    &lt;root level=&quot;DEBUG&quot;&gt;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        &lt;appender-ref ref=&quot;STDOUT-1&quot; /&gt;</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">    &lt;/root&gt;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&lt;/configuration&gt;</span><br style="font-family: courier new,monospace;">

<br><br>BR,<br>/César.<br>