Xavier Noria wrote: > On Aug 5, 2004, at 18:54, Woodchuck wrote: > >> what i thought was, if possible, it would be nice if we could somehow >> get the debug flag to read (poll) from some configuration file or >> something, so that we can change this configuration file to >> enable/disable logging (or even level of logging) in the application >> (esp. running in production). i can see this being useful to >> minimize logging activity in production until there is a problem, >> then turn on logging to investigate and turn off when fixed, etc. > > The convenience of doing this and how depends on the application, but > an easy solution could be to write an Action only known to developers > that just toggles the global debug flag. > > -- fxn
Everyone seems to be talking around the standard way of doing this. Depending on how you have your appserver configured, you can just uncomment one of the DEBUG lines in your WEB-INF/classes/log4j.properties file and that should turn logging on/off. - Richard --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]