How to initialize log4j properly?

前端 未结 24 3315
太阳男子
太阳男子 2020-11-22 06:49

After adding log4j to my application I get the following output every time I execute my application:

log4j:WARN No appenders could be found for logger (slideselec         


        
24条回答
  •  迷失自我
    2020-11-22 07:08

    I just did this and the issue was fixed.

    Followed the below blog

    https://intellij-support.jetbrains.com/hc/en-us/community/posts/206875685-How-to-fix-log4j-WARN-console-messages-when-running-an-Application-inside-IntelliJ-Idea

    But here he says like below

    To fix that just enter the following log4j.resources file into main/resources folder of your project

    instead of creating log4j.resources, create log4j.properties. Right Click on Resource in IntelliJ -> New -> Resource Bundle - Just name it as log4j

提交回复
热议问题