[logback-user] logback receiver configuration issue

George Richardson georger at comrad.co.nz
Tue Oct 22 03:18:26 CEST 2013

That suggestion fixed it.
I was using 1.0.9 which I thought was the most recent.
Replacing with 1.0.13 fixed the problem.

From: Logback-user [mailto:logback-user-bounces at qos.ch] On Behalf Of Tony Trinh
Sent: Tuesday, 22 October 2013 2:01 p.m.
To: logback users list
Subject: Re: [logback-user] logback receiver configuration issue

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<mailto: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<mailto: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<mailto: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">
      <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger - %msg%n</pattern>

  <root level="DEBUG">
    <appender-ref ref="CONSOLE" />

  <receiver class="ch.qos.logback.classic.net.server.ServerSocketReceiver">


George Richardson
Software Developer
________________________        ____                                                    _____
Radiology Information Solutions
DDi +64 3 353 1445<tel:%2B64%203%20353%201445>
e-mail:  georger at comrad.co.nz<mailto:rickg at comrad.co.nz>

Logback-user mailing list
Logback-user at qos.ch<mailto:Logback-user at qos.ch>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20131022/6ce7c34a/attachment-0001.html>

More information about the Logback-user mailing list