Thank you Dan,

I'm not sure I understand what you did to fix this up.
How can you specify a level on an appender ?

Cheers

Christophe Marcourt
Mondeca
Ingenieur R&D
3, Cite Nollez. 75018 Paris
Phone : +33 1 44 92 35 03
Mobile : +33 6 14 48 65 66
Fax : +33 1 44 92 02 59
http://www.mondeca.com/fr
ICQ : #119811844

-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Envoye : lundi 18 novembre 2002 15:17
A : Log4J Users List
Objet : RE: Question of inheritance


I noted this a while back, posted a question, but never got a reply.

When logs are passed up the tree to parent loggers, the parent loggers
don't check the log event against their own level. The level check is
*only* done at the logger through which the log enters.

I fix this by specifying levels on the relevant appenders.

Seems like odd behavior but that's the way it is.

dan





"Christophe Marcourt" <[EMAIL PROTECTED]> on 11/18/2002
06:19:49 AM

Please respond to "Log4J Users List" <[EMAIL PROTECTED]>

To:   "Log4J Users List" <[EMAIL PROTECTED]>
cc:

Subject:  RE: Question of inheritance


I thought it was that as well but nope !
I put a root logger :

     <root>
        <level value="OFF"></level>
        <appender-ref ref="stdout"/>
    </root>

But now I've got twice the trace (normal...) !
So, it's the last level logger which is prior to its parents and ancestors
?

Christophe Marcourt
Mondeca
Ingenieur R&D
3, Cite Nollez. 75018 Paris
Phone : +33 1 44 92 35 03
Mobile : +33 6 14 48 65 66
Fax : +33 1 44 92 02 59
http://www.mondeca.com/fr
ICQ : #119811844

-----Message d'origine-----
De : ByTek - Stefan Bayer [mailto:[EMAIL PROTECTED]]
Envoye : lundi 18 novembre 2002 12:11
A : Log4J Users List
Objet : Re: Question of inheritance

Christophe,

what about the ROOT logger?
As foo.bar not only inherits from foo but also from ROOT, you may have to
turn ROOT off, too.

Stefan



ByTek - Stefan Bayer
Softwaresysteme

<mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]


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


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










----------------------------------------------------------------------------
---
This message and any included attachments are from Siemens Medical Solutions
Health Services Corporation and are intended only for the addressee(s).
The information contained herein may include trade secrets or privileged or
otherwise confidential information.  Unauthorized review, forwarding,
printing,
copying, distributing, or using such information is strictly prohibited and
may
be unlawful.  If you received this message in error, or have reason to
believe
you are not authorized to receive it, please promptly delete this message
and
notify the sender by e-mail with a copy to [EMAIL PROTECTED]  Thank you



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


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

Reply via email to