springboot logstash-no applicable action for [pattern], current ElementPath

2022年9月20日 1686点热度 0人点赞 0条评论
ERROR in ch.qos.logback.classic.joran.action.ContextNameAction - Failed to rename context [nacos] as [logback] java.lang.IllegalStateException: Context has been already given a name
ERROR in ch.qos.logback.core.joran.spi.Interpreter@23:22 - no applicable action for [pattern], current ElementPath  is [[configuration][appender][encoder][pattern]]


ERROR in ch.qos.logback.core.joran.spi.Interpreter@23:22 - no applicable action for [pattern], current ElementPath  is [[configuration][appender][encoder][pattern]]


2022-09-20 14:20:35 [] [main] WARN  o.s.c.b.c.PropertySourceBootstrapConfiguration - Error opening logging config file classpath:logback-logstash.xml
java.lang.IllegalStateException: Logback configuration error detected: 
ERROR in ch.qos.logback.core.joran.spi.Interpreter@23:22 - no applicable action for [pattern], current ElementPath  is [[configuration][appender][encoder][pattern]]
	at org.springframework.boot.logging.logback.LogbackLoggingSystem.loadConfiguration(LogbackLoggingSystem.java:169)
	at org.springframework.boot.logging.AbstractLoggingSystem.initializeWithSpecificConfig(AbstractLoggingSystem.java:67)
	at org.springframework.boot.logging.AbstractLoggingSystem.initialize(AbstractLoggingSystem.java:57)
	at org.springframework.boot.logging.logback.LogbackLoggingSystem.initialize(LogbackLoggingSystem.java:117)
	at org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration.reinitializeLoggingSystem(PropertySourceBootstrapConfiguration.java:136)
	at org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration.initialize(PropertySourceBootstrapConfiguration.java:113)
	at org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:649)
	at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:373)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:314)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248)



<dependency>
	<groupId>net.logstash.logback</groupId>
	<artifactId>logstash-logback-encoder</artifactId>
	<version>6.3</version>
</dependency>

https://blog.csdn.net/yyzyq520/article/details/114646503

https://github.com/logfellow/logstash-logback-encoder/issues/373

Logback新版本报no applicable action for [Encoding]问题

https://cn-blogs.cn/archives/9475.html

https://www.cnblogs.com/idanyang/p/15932552.html

 

https://www.cnblogs.com/softidea/p/15981603.html

管理员

这个人很懒,什么都没留下

文章评论