No appenders could be found for logger(log4j)?

前端 未结 30 2950
[愿得一人]
[愿得一人] 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:54

    if you work together with a lot of projects you may face a style problem.

    *you have to have one lof4j.properties file and this file is included log properties of other project.

    *Beside you can try to put log4j properties files into src path when the project is worked Linux OS, libs of other project and log4.properties files can be under one folder into a location on the classpath.

提交回复
热议问题