logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anders Kristensen <akristen...@dynamicsoft.com>
Subject Re: How to switch off the loging?
Date Wed, 27 Jun 2001 20:55:55 GMT
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


Peter.Pan@comsat.com 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" <log4j-user@jakarta.apache.org>
> Date:       6/27/01 12:06 PM
> 
> Sorry, BasicConfigurator.disable seems to be deprecated. You can use
> Category.getDefaultHierarchy().disableAll()
> 
> -----Original Message-----
> From: Peter.Pan@comsat.com [mailto:Peter.Pan@comsat.com]
> Sent: Wednesday, June 27, 2001 11:58 AM
> To: log4j-user@jakarta.apache.org
> 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: log4j-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: log4j-user-help@jakarta.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: log4j-user-help@jakarta.apache.org
> 
> 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 <Peter.Pan@comsat.com>; 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 log4j-user-help@jakarta.apache.org; run by ezmlm
> Precedence: bulk
> List-Post: <mailto:log4j-user@jakarta.apache.org>
> List-Help: <mailto:log4j-user-help@jakarta.apache.org>
> List-Unsubscribe: <mailto:log4j-user-unsubscribe@jakarta.apache.org>
> List-Subscribe: <mailto:log4j-user-subscribe@jakarta.apache.org>
> Reply-To: "LOG4J Users Mailing List" <log4j-user@jakarta.apache.org>
> Delivered-To: mailing list log4j-user@jakarta.apache.org
> Received: (qmail 8067 invoked from network); 27 Jun 2001 19:20:15 -0000
> Message-ID: <B88F541D0C68D5118E7D0090279CBE30105B7A@mvmail.integral.com>
> From: Veerappan Saravanan <veerappan.saravanan@integral.com>
> To: "'LOG4J Users Mailing List'" <log4j-user@jakarta.apache.org>
> 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: log4j-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: log4j-user-help@jakarta.apache.org

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


Mime
View raw message