logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gülcü <c...@qos.ch>
Subject Re: log4j.disable
Date Thu, 04 Apr 2002 21:27:11 GMT

In the Hierarchy class the disable family of methods have been removed and 
replaced by setThreshold and getThreshold methods. This change is not 
backward compatible.

The new directive is


Here are some examples:

# turns off all logging

# throw away all DEBUG messages regardless of logger and its settings

# throw away all DEBUG and INFO messages regardless of logger and its settings

# This is the default. In other words, does not filter anything

HTH, Ceki

At 11:16 04.04.2002 -0800, you wrote:

>It seems that log4j.disable and log4j.enable are not working with 1.2beta 
>version. When I tried log4j.disable with 1.1.3 version it works fine. Is 
>1.2beta backward compatible? Is there replacement of this statement 
>(log4j.disable) in 1.2beta, because even log4j.enable was also not working 
>with 1.2beta. If anybody faced the same problem and has the solution then 
>please help me out!!! I really wanted to use this parameter(disable).
>   Samip Ladhawala <samip_ladhawala@yahoo.com> wrote:
>I found answer to my previous question...
>But I tried to use log4j.disable and log4j.enable. None of them are 
>working. My Property file looks like this:
>log4j.rootCategory=debug, dest1
>log4j.appender.dest1.layout.ConversionPattern=%-5p %l %x: %m%n
>I tried to change the position of log4j.enable, but it's not working. I am 
>using this in my test servlet. If anybody has solution, please help me as 
>soon as possible.
>Samip Ladhawala wrote:
>Is there any way to enable and disable logging dynamically in servlets. If 
>we use XML configuration file and change additivity for suppose debug to 
>false then it will not disable debug but everything else. Is there anyway 
>we can enable and disable everything and we can change it to enable as and 
>when we want. Did anybody try this? Please Help!!!
>Thanks in advance,

My link of the month: 
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message