logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pat Farrell <pfarr...@pfarrell.com>
Subject Re: everything is logged to "root" as well as where I want it.
Date Mon, 28 Sep 2009 15:12:47 GMT
Jacob Kjome wrote:
> You're already inheriting the "stdout" and "base" appenders from the
> root logger.  Don't re-define these on your child loggers unless
> additivity is turned off, which it is not.  Additivity does not apply to
> appenders, it applies to loggers, e.g.,....
> 
> log4j.additivity.com.fnfbook=false
> 
> I would think twice about additivity, though.  Why do you need it?  I
> think you are using it here in a desperate attempt to get logging going
> to the right places without really understanding what it is to be used
> for.  

You are correct. I've put them there in an attempt to make things split.
I want things to be split, go to specific log if its defined, and only
to root.log when nothing else "catches" the log requrest

> Just don't define "stdout" and "base" on your child loggers and
> see how things go before attempting to use additivity. 

I'll try that, thanks


-- 
Pat Farrell
http://www.pfarrell.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message