I'm getting some unexpected results with log4j.
I have three loggers set up:
logger com.Alpha.Beta is set to level = INFO
logger com.Alpha is set to level = FATAL
rootLogger is set to level = DEBUG
When I log a level=INFO message to logger com.Alpha.Beta,
the log message gets written to its ancestor's log (com.Alpha)
even though com.Alpha's level is FATAL.
It appears as if it doesn't care about ancestry levels once its decided to
write the message to a log: if the log specified meets the level criteria
of the
message, the message goes to the logger's ancestor's,
regardless of the ancestor's level.
|