[logback-user] logback receiver configuration issue

George Richardson georger at comrad.co.nz
Tue Oct 15 01:26:32 CEST 2013


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<mailto:rickg at comrad.co.nz>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20131014/b78b94a4/attachment.html>


More information about the Logback-user mailing list