DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17260>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17260 Add a LogLog.getQuietMode() method Summary: Add a LogLog.getQuietMode() method Product: Log4j Version: unspecified Platform: All OS/Version: All Status: NEW Severity: Minor Priority: Other Component: Other AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Consider adding a LogLog.getQuietMode() accessor method. There is a setQuietMode(), but no way to get the current mode so that its state can be restored. For example, I want to create this new class which will use it: /** A log4j SocketAppender that does not output a lengthy stack * trace to the console when it can't connect. Intended to be * used during development when Chainsaw may or may not be * running. * * @author Scott Schram * */ public class QuietSocketAppender extends org.apache.log4j.net.SocketAppender { /** Creates a new instance of QuietSocketAppender */ public QuietSocketAppender() { } /** Called when all of the options are set. * * The LogLog quiet mode is turned on, connection attempted, then * quiet mode turned back off. */ public void activateOptions() { // @todo save and restore the current state of quiet mode when they make the method public. LogLog.setQuietMode(true); super.activateOptions(); LogLog.setQuietMode(false); } } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]