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@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@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@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@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@comrad.co.nz
_______________________________________________
Logback-user mailing list
Logback-user@qos.ch
http://mailman.qos.ch/mailman/listinfo/logback-user