There is a method called setLevel in Category. You may want to getLevel of the 
logger and then set it up to a new log level.


David Killeffer <[EMAIL PROTECTED]> wrote: I'm trying to write a servlet that 
will let me change the log level (and
thereby optionally turn the logger on/off) of a logger that is running in my
application code somewhere else.  Currently I have logging running in my
application fine, and I have been able to get information on the logger and
appenders that are running, but changing the level of the logger doesn't
stop the application code from continuing to log.

Is it possible to change the log level of a logger in memory
(programmatically) by way of a servlet that would then change logging for my
application code?

- David

Reply via email to