Closed ncc0706 closed 2 months ago
I need more information. Preferably with reproducible code and config.
The error messages that you have highlighted do not look related to logstash-logback-encoder. The error messages look related to the appenders defined in naco-logback.xml.
I can reproduce the same error messages without using logstash-logback-encoder by replacing this:
<appender name="LOGSTASH" class="net.logstash.logback.appender.LogstashTcpSocketAppender">
<destination>${logstashHost}</destination>
<encoder charset="UTF-8" class="net.logstash.logback.encoder.LogstashEncoder"/>
</appender>
with this
<appender name="LOGSTASH" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%m</pattern>
</encoder>
</appender>
Since I can reproduce the error messages you see without using logstash-logback-encoder, I do not believe the error messages are caused by logstash-logback-encoder.
You can set debug="true"
in your logback-spring.xml to help debug.
<configuration scan="false" debug="true">
Thanks, this is a bug in Nacos.
-Dnacos.logging.default.config.enabled=false
detail see https://github.com/alibaba/nacos/issues/11781