<div dir="ltr">The error messages in your config indicate that you're using an old version of logback that doesn't support the "receiver"/"port" elements, which were introduced in 1.0.12. Verify that your classpath is pointing to logback 1.0.12 or newer.<br>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Oct 14, 2013 at 6:26 PM, George Richardson <span dir="ltr"><<a href="mailto:georger@comrad.co.nz" target="_blank">georger@comrad.co.nz</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-NZ" link="blue" vlink="purple">
<div>
<p class="MsoNormal">I am trying to run the logback example ‘ReceiverExample.java’ using the provided config file receiver1.xml.<u></u><u></u></p>
<p class="MsoNormal">When the application is started I get the following error messages:<u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">12:24:13,190 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]</span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>


<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">12:24:13,190 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [CONSOLE]</span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>


<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">12:24:13,202 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder]
 for [encoder] property</span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">12:24:13,209 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to DEBUG</span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>


<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">12:24:13,209 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [CONSOLE] to Logger[ROOT]</span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>


<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">12:24:13,212 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@19:76 - no applicable action for [receiver], current pattern is [[configuration][receiver]]</span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>


<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">12:24:13,212 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@20:11 - no applicable action for [port], current pattern is [[configuration][receiver][port]]</span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>


<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">12:24:13,212 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.</span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>


<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I don’t understand what the issue with the receiver element in the config file.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The configutrration file is:<u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:teal"><</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f;background:silver">configuration</span><span style="font-size:10.0pt;font-family:Consolas">
<span style="color:#7f007f">debug</span><span style>=</span><i><span style="color:#2a00ff">"true"</span></i><span style="color:teal">></span><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas"> 
</span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">  </span><span style="font-size:10.0pt;font-family:Consolas;color:teal"><</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">appender</span><span style="font-size:10.0pt;font-family:Consolas">
<span style="color:#7f007f">name</span><span style>=</span><i><span style="color:#2a00ff">"CONSOLE"</span></i>
<span style="color:#7f007f">class</span><span style>=</span><i><span style="color:#2a00ff">"ch.qos.logback.core.ConsoleAppender"</span></i><span style="color:teal">></span><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">   
</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"><</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">encoder</span><span style="font-size:10.0pt;font-family:Consolas;color:teal">></span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>


<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">     
</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"><</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">pattern</span><span style="font-size:10.0pt;font-family:Consolas;color:teal">></span><span style="font-size:10.0pt;font-family:Consolas">%d{HH:mm:ss.SSS}
 [%thread] %-5level %logger - %<u>msg</u>%n</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"></</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">pattern</span><span style="font-size:10.0pt;font-family:Consolas;color:teal">></span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>


<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">   
</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"></</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">encoder</span><span style="font-size:10.0pt;font-family:Consolas;color:teal">></span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>


<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas"> 
</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"></</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">appender</span><span style="font-size:10.0pt;font-family:Consolas;color:teal">></span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>


<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas"> 
</span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">  </span><span style="font-size:10.0pt;font-family:Consolas;color:teal"><</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">root</span><span style="font-size:10.0pt;font-family:Consolas">
<span style="color:#7f007f">level</span><span style>=</span><i><span style="color:#2a00ff">"DEBUG"</span></i><span style="color:teal">></span><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">   
</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"><</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">appender-ref</span><span style="font-size:10.0pt;font-family:Consolas">
<span style="color:#7f007f">ref</span><span style>=</span><i><span style="color:#2a00ff">"CONSOLE"</span></i>
<span style="color:teal">/></span><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas"> 
</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"></</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">root</span><span style="font-size:10.0pt;font-family:Consolas;color:teal">></span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>


<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas"> 
</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"><</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">receiver</span><span style="font-size:10.0pt;font-family:Consolas">
<span style="color:#7f007f">class</span><span style>=</span><i><span style="color:#2a00ff">"ch.qos.logback.classic.net.server.ServerSocketReceiver"</span></i><span style="color:teal">></span><u></u><u></u></span></p>


<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">   
</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"><</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">port</span><span style="font-size:10.0pt;font-family:Consolas;color:teal">></span><span style="font-size:10.0pt;font-family:Consolas">6000</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"></</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">port</span><span style="font-size:10.0pt;font-family:Consolas;color:teal">></span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>


<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas"> 
</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"></</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">receiver</span><span style="font-size:10.0pt;font-family:Consolas;color:teal">></span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>


<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas"> 
</span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:teal"></</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f;background:silver">configuration</span><span style="font-size:10.0pt;font-family:Consolas;color:teal">><u></u><u></u></span></p>


<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><b><span lang="EN-GB" style="color:navy">George Richardson<br>
</span></b><span lang="EN-GB" style="color:navy">Software Developer</span><span style><u></u><u></u></span></p>
<p class="MsoNormal"><u><span lang="EN-GB" style="font-size:6.0pt;font-family:"Arial","sans-serif";color:#0ba9bc">________________________        ____                                                    _____        
</span></u><span style><u></u><u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-GB" style="font-family:"Tahoma","sans-serif";color:navy">COMRAD.</span></b><span style><u></u><u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-GB" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:#3366ff">Radiology Information Solutions</span></b><span style><u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">DDi <a href="tel:%2B64%203%20353%201445" value="+6433531445" target="_blank">+64 3 353 1445</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">e-mail:  <a href="mailto:rickg@comrad.co.nz" target="_blank">
<span style="color:blue">georger@comrad.co.nz</span></a></span><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>

<br>_______________________________________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch">Logback-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" target="_blank">http://mailman.qos.ch/mailman/listinfo/logback-user</a><br></blockquote></div><br></div>