[logback-user] logback receiver configuration issue

Tony Trinh tony19 at gmail.com
Tue Oct 22 03:00:56 CEST 2013


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.


On Mon, Oct 14, 2013 at 6:26 PM, George Richardson <georger at comrad.co.nz>wrote:

>  I am trying to run the logback example ‘ReceiverExample.java’ using the
> provided config file receiver1.xml.****
>
> When the application is started I get the following error messages:****
>
> 12:24:13,190 |-INFO in ch.qos.logback.core.joran.action.AppenderAction -
> About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
> ****
>
> 12:24:13,190 |-INFO in ch.qos.logback.core.joran.action.AppenderAction -
> Naming appender as [CONSOLE]****
>
> 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****
>
> 12:24:13,209 |-INFO in
> ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of
> ROOT logger to DEBUG****
>
> 12:24:13,209 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction
> - Attaching appender named [CONSOLE] to Logger[ROOT]****
>
> 12:24:13,212 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter at 19:76 -
> no applicable action for [receiver], current pattern is
> [[configuration][receiver]]****
>
> 12:24:13,212 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter at 20:11 -
> no applicable action for [port], current pattern is
> [[configuration][receiver][port]]****
>
> 12:24:13,212 |-INFO in
> ch.qos.logback.classic.joran.action.ConfigurationAction - End of
> configuration.****
>
> ** **
>
> I don’t understand what the issue with the receiver element in the config
> file.****
>
> ** **
>
> The configutrration file is:****
>
> <configuration debug=*"true"*>****
>
>   ****
>
>   <appender name=*"CONSOLE"* class=*"ch.qos.logback.core.ConsoleAppender"*
> >****
>
>     <encoder>****
>
>       <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger - %*msg*%n</
> pattern>****
>
>     </encoder>****
>
>   </appender>****
>
>   ****
>
>   <root level=*"DEBUG"*>****
>
>     <appender-ref ref=*"CONSOLE"* />****
>
>   </root>****
>
> ** **
>
>   <receiver class=*
> "ch.qos.logback.classic.net.server.ServerSocketReceiver"*>****
>
>     <port>6000</port>****
>
>   </receiver>****
>
>   ****
>
> </configuration>****
>
> ** **
>
> ** **
>
> *George Richardson
> *Software Developer****
>
> *________________________        ____
>                   _____         *****
>
> *COMRAD.*****
>
> *Radiology Information Solutions*****
>
> DDi +64 3 353 1445****
>
> e-mail:  georger at comrad.co.nz <rickg at comrad.co.nz>****
>
> ** **
>
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://mailman.qos.ch/mailman/listinfo/logback-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20131021/bc3bdd74/attachment.html>


More information about the Logback-user mailing list