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 Flow: 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 <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
