No appenders could be found for logger(log4j)?

前端 未结 30 2948
[愿得一人]
[愿得一人] 2020-11-22 08:16

I have put log4j to my buildpath, but I get the following message when I run my application:

log4j:WARN No appenders could be found for logger (dao.hsqlmanag         


        
30条回答
  •  生来不讨喜
    2020-11-22 08:58

    Make sure the properties file has properly set. And again, it seems like that the compiler cannot find the properties file, you can set as follow at the pom (only when you use maven project).

    
            src/main/java
            src/test/java
            
                 
                      resources
                 
                       
    
    

提交回复
热议问题