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

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掉

いいねを押す +0
人気のチュートリアル
詳細>
最新のダウンロード
詳細>
ウェブエフェクト
公式サイト
サイト素材
フロントエンドテンプレート
私たちについて 免責事項 Sitemap
PHP中国語ウェブサイト:福祉オンライン PHP トレーニング,PHP 学習者の迅速な成長を支援します!