My experience is is 1.2 so it appears 1.3 is different. :-)

On 9/1/06, Blok, Eelke <[EMAIL PROTECTED]> wrote:
Hi,

Thanks for answering.

Well, I must be imagining things than, because as it is, I am receiving
a lot of logging from the org.apache.log4j hierarchy ;) I am using 1.3
alpha 8, that might possibly make a difference.

It's ending up in that LOGGINGROLL rolling file appender mentioned in
the config snippet I posted earlier, and also in my root logger. The
latter is actually what I'm trying to prevent, because I'm deliberately
attaching an appender specific to logging (LOGGINGROLL) onto the tree to
separate out all logging activity that has to do with the logging
framework itself, so I do not want to have all logging from log4j
repeated at the root level as well. Hence, I would like to set the
additivity to false.

Best regards,

Eelke Blok

-----Original Message-----
From: James Stauffer [mailto:[EMAIL PROTECTED]
Sent: vrijdag 1 september 2006 14:25
To: Log4J Users List
Subject: Re: Additivity for org.apache.log4j can not be set?


I don't think log4j classes create normal logs so it seems pointless to
even have a log4j logger configured.

On 9/1/06, Blok, Eelke <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I've tried finding an answer on the net, but it's kind of hard finding

> anything about this problem when searching for additivity and log4j ;)
>
> I'm trying to configure log4j with an XML file using Joran
> configurator, and mostly it works fine. However, it looks like it will

> not allow me to set the additivity for the org.apache.log4j logger to
> false. I'm using the following XML:
>
> <logger name="org.apache.log4j" additivity="false">
>     <appender-ref ref="LOGGINGROLL" />
>     <level value="INFO" />
> </logger>
>
> In the same file, I configure another logger in exactly the same way
> (with the same appender, which is a rolling file appender), but it's
> in my own logger hierarchy. It has no problem at all having its
> additivity set. Also, when I set the logging level of the Log4J
> hierarchy to DEBUG, Joran configurator tells me it's setting the
> additivity for org.apache.log4j to false, just like I asked it to.
>
> However, when I test the value of the additivity by retrieving the
> logger with Logger.getLogger("org.apache.log4j"); and then calling
> getAdditivity() on the logger object I get back, it tells me the
> additivity is set to true. It almost looks like the additivity is
> being reset some time after the configurator has done its work.
>
> Best regards,
>
> Eelke Blok
>
>


--
James Stauffer        http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



PRIVACY: The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential and/or
priviliged material. Any review, retransmission, dissemination or other
use of this information by persons or entities other than the intended
recipient is prohibited. If you received this in error, please contact
the sender and delete the material from any computer. Thank you.




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
James Stauffer        http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to