logback / LOGBACK-1743 [Open]
SocketReceiver configuration broken

==============================

Here's what changed in this issue in the last few minutes.

This issue has been created
This issue is now assigned to you.


View or comment on issue using this link
https://jira.qos.ch/browse/LOGBACK-1743

==============================
 Issue created
------------------------------

Volker Götz created this issue on 30/May/23 23:19

Summary:              SocketReceiver configuration broken
Issue Type:           Bug
Affects Versions:     1.4.0, 1.4.7
Assignee:             Logback dev list
Created:              30/May/23 23:19
Priority:             Major
Reporter:             Volker Götz
Description:
  The standard {{ServerSocketReceiver}} configuration, as mentioned in the 
[documentation chapter 13 |https://logback.qos.ch/manual/receivers.html] is not 
working anymore. The XML configuration cannot be parsed:
  
  {code}
  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]
  {code}
  
  
  Configuration file:
  
  {code:xml}
  <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>
  {code}
  
  The full log output with the error:
  
  {code}
  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
  {code}
  


==============================
 This message was sent by Atlassian Jira (v9.6.0#960000-sha1:a3ee8af)

_______________________________________________
logback-dev mailing list
logback-dev@qos.ch
https://mailman.qos.ch/cgi-bin/mailman/listinfo/logback-dev

Reply via email to