java - springboot集成log4j2日志,一直出现发现多个jar,后来出现以下问题,请问怎么解决?
PHPz
PHPz 2017-04-18 10:16:29
0
2
744

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]

PHPz
PHPz

学习是最好的投资!

全部回覆(2)
小葫芦

換log4j2需要把starter-logging exclude掉

小葫芦

https://github.com/xujijun/my...

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!