Hi
In
http://search.cpan.org/dist/Log-Log4perl/lib/Log/Log4perl/FAQ.pm#I_keep_getting_duplicate_log_messages!_What%27s_wrong?
there are two examples (line numbers come from FAQ.pm version 1.35):
A) 2 categories both write in the same appender (lines 759-763)
B) 2 categories each writes to separate appender (lines 817-825)
The explanation in lines 789-793 for the example A is crystal clear.
However, I don't understand how it applies to the example B. Perhaps the
answer lies in "directly or indirectly attached appenders"? I am not
sure I understand if one of the appenders in example B are indirect and
why I need to set the 'Threshold' explicitly for the Screen1 appender
(line 822)
BTW if I follow the solution with 'Threshold' it works fine, I am just
trying to understand why :)
Regards
Vangelis Katsikaros
|