java - log4j - rootLogger without appender gives warning -


I have defined the attendants for all the log files that I need. Therefore, I thought that the appenders for the root logger There is no requirement because there is nothing to enter the root logger, therefore, I changed the line from log4j.properties:

log4j.rootLogger = debug, default

to

Log4j.rootlogger = debug

but I get the following warning at application startup.

log4j: no addenders found for WARN logger .apache.commons.configuration.PropertiesConfiguration). Log4j: Start the Warning Log4j system properly. Log4j: Watch for more information.

So, do not any redirecters want to redirect the root logger logs without any errors or warnings?

Are you saying that you do not need a root logger? If so, you should completely delete the log4j.rootLogger = debug

. The Log4j system is hoping to add the appenders to any declared logs, so removing the root should remove the problem.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -