Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
1.4.0, 1.4.7
-
None
-
None
Description
The standard ServerSocketReceiver configuration, as mentioned in the documentation chapter 13 is not working anymore. The XML configuration cannot be parsed:
Can't handle model of type class ch.qos.logback.classic.model.ReceiverModel with tag: receiver at line 13
Ignoring unknown property [port] in [ch.qos.logback.classic.LoggerContext]
Configuration file:
<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>9876</port> </receiver> </configuration>
The full log output with the error:
23:16:45,076 |-INFO in ch.qos.logback.classic.LoggerContext[default] - This is logback-classic version 1.4.7 23:16:45,091 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml] 23:16:45,093 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/Users/volker/Workspaces/IntelliJ/G-ITS/logback-receiver/build/resources/main/logback.xml] 23:16:45,170 |-INFO in ch.qos.logback.core.model.processor.AppenderModelHandler - Processing appender named [CONSOLE] 23:16:45,171 |-INFO in ch.qos.logback.core.model.processor.AppenderModelHandler - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender] 23:16:45,175 |-INFO in ch.qos.logback.core.model.processor.ImplicitModelHandler - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property 23:16:45,183 |-INFO in ch.qos.logback.classic.model.processor.RootLoggerModelHandler - Setting level of ROOT logger to DEBUG 23:16:45,183 |-INFO in ch.qos.logback.core.model.processor.AppenderRefModelHandler - Attaching appender named [CONSOLE] to Logger[ROOT] 23:16:45,186 |-ERROR in ch.qos.logback.core.model.processor.DefaultProcessor@3023df74 - Can't handle model of type class ch.qos.logback.classic.model.ReceiverModel with tag: receiver at line 13 23:16:45,187 |-WARN in ch.qos.logback.core.model.processor.ImplicitModelHandler - Ignoring unknown property [port] in [ch.qos.logback.classic.LoggerContext] 23:16:45,187 |-ERROR in ch.qos.logback.core.model.processor.DefaultProcessor@3023df74 - Can't handle model of type class ch.qos.logback.classic.model.ReceiverModel with tag: receiver at line 13 23:16:45,187 |-INFO in ch.qos.logback.core.model.processor.DefaultProcessor@3023df74 - End of configuration. 23:16:45,188 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@5e0e82ae - Registering current configuration as safe fallback point