DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=42772>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42772 Summary: add a "getOutputStream()" Method to Appender Product: Log4j Version: 1.2 Platform: Other OS/Version: other Status: NEW Severity: enhancement Priority: P2 Component: Appender AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] A javamail service is used as an daemon via an /etc/init.d script. Javamail trace sends debug to stdout or stderr. init.d scripts normally suppress stdout and stderr, but use things like RollingFileAppender. There is javax.mail.Session.setDebugOut(PrintStream arg0) method I could use to redirect the javamail debug output into log4j as well. Preferrably, I would in the class where where I setup the javamail session take the logger, inspect its appenders and then have the session's DebugOut use that too. Unfortunately, it appears that the suggested method is missing. I see http://logging.apache.org/log4j/docs/faq.html#3.3 for multiple processes to the same file, in the current case, this appears to be an overkill since it is definitely the same process, most likely even the same thread. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
