No appenders could be found for logger(log4j)?

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

    You use the Logger in your code to log a message. The Appender is a Object appended to a Logger to write the message to a specific target. There are FileAppender to write to text-files or the ConsoleAppender to write to the Console. You need to show your code of the Logger and Appender setup for more help.

    please read the tutorial for a better understanding of the interaction of Logger and Appender.

提交回复
热议问题