You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Stephen Levinson <St...@sun.com> on 2001/09/21 14:36:00 UTC

Restarting logging after Disabling logging from a Configuration F ile

I have found that with configureAndWatch(...) if I set

log4j.disable=FATAL it turns OFF all logging...

I can then change this to 

log4j.disable=DEBUG (or INFO, etc)  and everything above debug turns on...

But I can't get ALL logging to restart once I've set disable=FATAL ...

Is there any way to do this?

--Thanks, Stephen

-----Original Message-----
From: Stephen Levinson [mailto:Stephen.Levinson@Sun.COM]
Sent: Friday, September 21, 2001 8:17 AM
To: 'LOG4J Users Mailing List'
Subject: RE: Disabling logging from a Configuration File


Can this be done via configureAndWatch(...) ???

If not, how to do this in real-time runtime...???

Thanks.

--Stephen

-----Original Message-----
From: Ceki Gülcü [mailto:cgu@qos.ch]
Sent: Thursday, September 20, 2001 5:30 PM
To: LOG4J Users Mailing List
Subject: Re: Disabling logging from a Configuration File



Please, try 

  log4j.disable=FATAL

this will become 

  log4j.enable=OFF

in log4j version 1.2.

Hope this helps, Ceki

At 11:30 20.09.2001 -0600, you wrote:
>As far as i know, it must be done through Hierarchy.disableAll()  and
>Hierarchy.disableAll(Priority)
>Hierarchy.enableAll() can be called afterwards when required.
>
>
>----- Original Message -----
>From: "Stephen Levinson" <St...@sun.com>
>To: "'LOG4J Users Mailing List'" <lo...@jakarta.apache.org>
>Sent: Thursday, September 20, 2001 9:32 AM
>Subject: Disabling logging from a Configuration File
>
>
>> Hi...
>> I'm running with configureAndWatch(,,,) reading a configuration file
>> for logging changes and control.
>>
>> Is there a way to totally DISABLE all logging .... ( like calling
>> disableAll() ) ... by means of a setting in my configuration file?
>>
>>
>> Thanks, Stephen
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: log4j-user-help@jakarta.apache.org

--
Ceki Gülcü - http://qos.ch

The world owes Israel a great debt for destroying Saddam's 
French built nuclear reactor in 1981 and thus preventing
nuclear blackmail in the region and perhaps beyond.
                       -- Garry Kasparov (yes, the chess player) 


---------------------------------------------------------------------
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

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