Rumah  >  Soal Jawab  >  teks badan

springboot集成log4j2日志,一直出现发现多个jar,后来出现以下问题,请问怎么解决?

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]

高洛峰高洛峰2881 hari yang lalu1624

membalas semua(1)saya akan balas

  • 三叔

    三叔2016-10-31 09:14:42

    换log4j2需要把starter-logging exclude掉

    balas
    0
  • Batalbalas