This content has been marked as final.
Show 1 reply
-
1. Re: log4j appends to console too
vashistvishal Jul 20, 2005 2:38 AM (in response to graflaszlo)If i understood right,
then take out the reference of yr appender from the root logger, as every logger inherits from root logger.
Also it wll be good to set additivity flag to false.<category name="gl.myapp" additivity="false">
Note on appender additivity - The output of a log statement of some logger L is forwarded to all the appenders in L and its ancestors. This is the meaning of the term appender additivity.
However if and ancestor of Logger L, say, P has its additivity flag set to false then, L's output will be directed to all the appenders in L and its ancestors upto and including P. bit not the appenders in any of the the ancestors. of P.
Loggers have their additivity set to true by default.