Yes, it is possible to do this. See the disable and disableOverride methods in 
BasicConfigurator. (These methods moved to the Hierarchy class in log4j 1.1 beta1.) 
Ceki

At 23:19 07.03.2001 +0000, Joseph Panico wrote:
>Hello,
>
>Is there a simple way to programmatically suspend (temporarily stop) all logging 
>activity? I want the Category heirarchy and all Appenders left in-tact, but for all 
>log calls to simply do nothing (NOOP). I then need to programmatically resume logging 
>at some later time.


I hope to see you at my ApacheCon 2001 presentation 
entitled "Log4j, A Logging Package for Java".

See http://ApacheCon.Com/2001/US/ for more details.

----
Ceki Gülcü          Web:   http://qos.ch     
av. de Rumine 5     email: [EMAIL PROTECTED] (preferred)
CH-1005 Lausanne           [EMAIL PROTECTED]
Switzerland         Tel: ++41 21 351 23 15


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

Reply via email to