logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tushar Kapila <tgkp...@gmail.com>
Subject Re: allow level scheduling
Date Tue, 07 Dec 2010 11:34:18 GMT
we have a need to do that during testing - which we do in the night
when load is less

what we do is call a web page which changes the log4j properties at
run time - loads from the 'debug' or regular xml file

Might be nice to have this as a feature but just saying you can do
this now too with your own code

Our default log4j is loaded at start up by the log4j system

When we want to debug we call our page and set log4j to the debug mode
(we actually have 4 such property files where we over ride debug for
different classes -  depending on need)

When we are done testing call the same page and ask it to load the
default set again

On Tue, Dec 7, 2010 at 4:27 PM, Enric Jaen <enricjaen@yahoo.es> wrote:
> I think that often we need to configure loggers according some scheduling.
> So it would be nice to schedule WHEN you want to activate a certain level, for example:
> - activate DEBUG between 00 - 07 hours,
> - activate DEBUG only sundays,
> - activate DEBUG only this week
> - etc
> /Enric

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

View raw message