Rumah  >  Soal Jawab  >  teks badan

java - 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]

PHPzPHPz2713 hari yang lalu748

membalas semua(2)saya akan balas

  • 高洛峰

    高洛峰2017-04-18 10:18:29

    Anda perlu mengecualikan pengelogan permulaan apabila menukar kepada log4j2

    balas
    0
  • 高洛峰

    高洛峰2017-04-18 10:18:29

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

    balas
    0
  • Batalbalas