Log4j2 configuration - No log4j2 configuration file found

前端 未结 6 613
说谎
说谎 2020-12-07 14:19

Lately I decided to learn how to use the log4j2 logger. I downloaded required jar files, created library, xml comfiguration file and tried to use it. Unfortunately i get thi

6条回答
  •  失恋的感觉
    2020-12-07 15:00

    Additionally to what Tomasz W wrote, by starting your application you could use settings:

    -Dorg.apache.logging.log4j.simplelog.StatusLogger.level=TRACE 
    

    to get most of configuration problems.

    For details see Log4j2 FAQ: How do I debug my configuration?

提交回复
热议问题