logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "T Master" <tmas...@iknowledgeinc.com>
Subject Turning a Category On/Off
Date Fri, 04 Jan 2002 22:03:36 GMT

Apologies for dumb questions...

I am trying to dynamiccally modify my Category's Priority at run time.

The code below is used to effect this:
            myCategory.setPriority(Priority.INFO);  // Turn ON
            myCategory.setPriority(Priority.DEBUG);  // Turn OFF

However, after turning my Category OFF , messages logged at the info level
still appear in my File.

I believe I'm doing somethign really stupid or should not be using DEBUG as
my OFF equivilant.

T Master

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

View raw message