Re: changing log4J configuration during run time
Quoting Deep Chand <[EMAIL PROTECTED]>: > Hi, > > In log4J, if I change the configuration i.e. increase/decrease the > level of a particular logger or add more appenders/categories in the > config file, then do I have to restart the web server for that setting > to take effect. > Avoid configureAndWatch() in a J2EE environment. Instead use something like LogWeb... http://www.codeczar.com/products/logweb/index.html Jake > What I understand from the documentation is that if I use > DOMConfigurator.configureAndWatch(, ) > then I don't have to restart the server. Is this the only way to > change the logging configuration during run time or there are some > other ways also? If you use this method, then a thread is launched > which continously monitors the config file changes. Is this technique > has some serious performance overhead and therefore not preffered in > production enviornment? > > What do people generally prefer - use this method OR simply use > DOMConfigurator.configure(fileName) and restart the server after > changing the config file? > > Thanks > Deep > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Different encoding in SMTPAppender
Hello List, Is there any way to tell SMTPAppender to use another encoding instead of the system default for emails? The "encoding" parameter is not implemented in SMTPAppender, neither is "charset". By taking a look at the source, it seemed to me that I would have to either use a filter that does the encoding, or use a DataContentHandler, but those two paths don't look very appealing to me. Isn't there any default way of doing this? Thanks for any insights, Tobias - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
changing log4J configuration during run time
Hi, In log4J, if I change the configuration i.e. increase/decrease the level of a particular logger or add more appenders/categories in the config file, then do I have to restart the web server for that setting to take effect. What I understand from the documentation is that if I use DOMConfigurator.configureAndWatch(, ) then I don't have to restart the server. Is this the only way to change the logging configuration during run time or there are some other ways also? If you use this method, then a thread is launched which continously monitors the config file changes. Is this technique has some serious performance overhead and therefore not preffered in production enviornment? What do people generally prefer - use this method OR simply use DOMConfigurator.configure(fileName) and restart the server after changing the config file? Thanks Deep - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Use of NDC with Log4J
Hi, Are there any examples/documentation with examples on how to use NDC with log4J? I read the introduction to Log4J on apache.org but didn't find it very useful. Thanks Deep - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]