Dear Ceki,

do you mean that if you create an instance "a.b.c" and this instance does
not exists, the method "updateParents()" in class Hierarchy is called, so
that the missing (parent) categories "a" and "b" are created. So if you want
to delete "a.b.c" you would have delete the hole chain form c->b->a?
I see that it would be a problem if you create:

"a.b.c" and "a.b" 
and wish to delete "a.b.c", because in this case the parent "a.b" should'n
be deleted. But if you created "a.b.c" without creating parents between, the
deletion would be ok. So some kind of history would be necessary.
Am I on the right way?
Thilo

-----Original Message-----
From: Ceki Gülcü [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 28. Juni 2001 09:05
To: LOG4J Users Mailing List
Subject: RE: How to switch off the loging?



Thilo,

No, removing a category from the hierarchy will simply detach it. It will
continue to exist with a link to its parent. It just won't be visible to the
Hierarchy and won't be returned by Category.getInstace(). 

A method to remove categories is trivial to add but it will have the side
effect of completely screwing up the  semantics of Category.getInstace(). Do
you see what I mean? Ceki

At 08:41 28.06.2001 +0200, Thilo Schottelius wrote:
>Dear Anders,
>how do you think about the idea to remove a created instance of a category
>from the Hashtable of class Hierarchy? This would disable all the logging
to
>this instance/class.
>
>Thilo
>
>-----Original Message-----
>From: Anders Kristensen [mailto:[EMAIL PROTECTED]]
>Sent: Mittwoch, 27. Juni 2001 22:56
>To: LOG4J Users Mailing List
>Subject: Re: How to switch off the loging?
>
>
>Just set the priority associated with the category to something really
>high, e.g. FATAL. This effectively turns off logging for that category.
>(Yes, something logged with priority FATAL will still get logged -- you
>could argue for and against this behaviour but that's how it currently
>works.)
>
>Anders
>
>
>[EMAIL PROTECTED] wrote:
>> 
>> But I only want to switch off the logging of a specific category. The
>disableall
>> will disable the logging of all catogories?
>> 
>> Thanks,
>> Peter
>> 
>> ____________________Reply Separator____________________
>> Subject:    RE: How to switch off the loging?
>> Author: "LOG4J Users Mailing List" <[EMAIL PROTECTED]>
>> Date:       6/27/01 12:06 PM
>> 
>> Sorry, BasicConfigurator.disable seems to be deprecated. You can use
>> Category.getDefaultHierarchy().disableAll()
>> 
>> -----Original Message-----
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>> Sent: Wednesday, June 27, 2001 11:58 AM
>> To: [EMAIL PROTECTED]
>> Subject: How to switch off the loging?
>> 
>> I have a category com.mycompany.prod. How to switch off it's loging? I
>mean
>> do
>> not let it log any message to it's appender.
>> 
>> Thanks,
>> Peter
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> Received: from omnivor1.rsp.comsat.com ([134.133.178.45]) by
>> cqgate5.cmc.comsat.com with SMTP
>>   (IMA Internet Exchange 3.13) id 0038C287; Wed, 27 Jun 2001 15:31:38
>-0400
>> Received: from omnivor1.rsp.comsat.com ([134.133.178.45]) by
>> omnivor1.rsp.comsat.com with SMTP (Microsoft Exchange Internet Mail
>Service
>> Version 5.5.2650.21)
>>     id MQS4ACVL; Wed, 27 Jun 2001 15:27:01 -0400
>> Received: FROM neo.it.comsat.com BY omnivor1.rsp.comsat.com ; Wed Jun 27
>> 15:27:01 2001 -0400
>> Received: from apache.org (h31.sny.collab.net [64.208.42.41])
>>     by neo.it.comsat.com (Switch-2.0.1/Switch-2.0.1) with SMTP id
>f5RJDFj22921
>>     for <[EMAIL PROTECTED]>; Wed, 27 Jun 2001 15:13:15 -0400 (EDT)
>> Received: (qmail 8257 invoked by uid 500); 27 Jun 2001 19:20:20 -0000
>> Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
>> Precedence: bulk
>> List-Post: <mailto:[EMAIL PROTECTED]>
>> List-Help: <mailto:[EMAIL PROTECTED]>
>> List-Unsubscribe: <mailto:[EMAIL PROTECTED]>
>> List-Subscribe: <mailto:[EMAIL PROTECTED]>
>> Reply-To: "LOG4J Users Mailing List" <[EMAIL PROTECTED]>
>> Delivered-To: mailing list [EMAIL PROTECTED]
>> Received: (qmail 8067 invoked from network); 27 Jun 2001 19:20:15 -0000
>> Message-ID: <[EMAIL PROTECTED]>
>> From: Veerappan Saravanan <[EMAIL PROTECTED]>
>> To: "'LOG4J Users Mailing List'" <[EMAIL PROTECTED]>
>> Subject: RE: How to switch off the loging?
>> Date: Wed, 27 Jun 2001 12:06:36 -0700
>> MIME-Version: 1.0
>> X-Mailer: Internet Mail Service (5.5.2653.19)
>> Content-Type: text/plain;
>> X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]

--
Ceki Gülcü


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

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

Reply via email to