springboot集成log4j2日志,一直出现发现多个jar,后来出现以下问题,请问怎么解决?
高洛峰
高洛峰 2016-10-31 09:14:20
0
1
1652

Logging system failed to initialize using configuration from 'classpath:log4j2.xml'
java.lang.IllegalStateException: Logback configuration error detected: 
ERROR in ch.qos.logback.core.joran.spi.Interpreter@4:13 - no applicable action for [appenders], current ElementPath is [configuration]
ERROR in ch.qos.logback.core.joran.spi.Interpreter@6:47 - no applicable action for [Console], current ElementPath is [configuration[Console]]
ERROR in ch.qos.logback.core.joran.spi.Interpreter@8:70 - no applicable action for [ThresholdFilter], current ElementPath is [configurationConsole]
ERROR in ch.qos.logback.core.joran.spi.Interpreter@10:86 - no applicable action for [PatternLayout], current ElementPath is [configurationConsole]
ERROR in ch.qos.logback.core.joran.spi.Interpreter@14:59 - no applicable action for [File], current ElementPath is [configuration[File]]
ERROR in ch.qos.logback.core.joran.spi.Interpreter@15:86 - no applicable action for [PatternLayout], current ElementPath is [configurationFile]
ERROR in ch.qos.logback.core.joran.spi.Interpreter@20:71 - no applicable action for [RollingFile], current ElementPath is [configuration[RollingFile]]
ERROR in ch.qos.logback.core.joran.spi.Interpreter@21:100 - no applicable action for [PatternLayout], current ElementPath is [configurationRollingFile]
ERROR in ch.qos.logback.core.joran.spi.Interpreter@22:44 - no applicable action for [SizeBasedTriggeringPolicy], current ElementPath is [configurationRollingFile]
ERROR in ch.qos.logback.core.joran.spi.Interpreter@27:11 - no applicable action for [loggers], current ElementPath is [configuration]
ERROR in ch.qos.logback.core.joran.spi.Interpreter@29:23 - no applicable action for [root], current ElementPath is [configuration[root]]
ERROR in ch.qos.logback.core.joran.spi.Interpreter@30:37 - no applicable action for [appender-ref], current ElementPath is [configurationroot]
ERROR in ch.qos.logback.core.joran.spi.Interpreter@31:33 - no applicable action for [appender-ref], current ElementPath is [configurationroot]

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

全部回复(1)
三叔

换log4j2需要把starter-logging exclude掉

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!