Why is the Log4j rootLogger
in my application not filtering log events according to level? In my log4j.properties
, I have several loggers:
Check out the inheritance described in the intro. If you specify a level at the package level, it won't inherit the root logger's level. You're using debug in the packages you specify, not info. Specifying the level overrides whatever has been inherited.
If you want to inherit the root logger's level, get rid of the level specification in your logger configurations.