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=33717>. 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=33717 Summary: Leaving out %throwable in ConversionPattern adds throwable to logging message regardless Product: Log4j Version: 1.3alpha Platform: PC OS/Version: Windows 2000 Status: NEW Severity: normal Priority: P2 Component: Layout AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] Now I may not be understanding the usage of the new conversion character "throwable" in PatternLayout, but when I don't add it to my ConversionPattern I still see the throwable added to the logging message. Is there a way to turn off the throwable/stack trace from being added to the logging message after it is added to the logging event via something like logger.error(Object message, Throwable t)? It would be very useful in the case of the SMTPAppender when we don't want to email any stack trace information (security reasons) but we would like to have a file logger (i.e. RollingFileAppender) record the stack trace. That way the SMTPAppender would just notify the system administrator of an error after which they could go an look at the logs in a more secure setting. For example the properties file might look like: # Output to email message - threshold is FATAL messages only log4j.appender.SMTPAppender=org.apache.log4j.net.SMTPAppender log4j.appender.SMTPAppender.BufferSize=512 log4j.appender.SMTPAppender.SMTPHost=??? log4j.appender.SMTPAppender.From=??? log4j.appender.SMTPAppender.To=??? log4j.appender.SMTPAppender.Subject=My App Email Error log4j.appender.SMTPAppender.layout=org.apache.log4j.PatternLayout log4j.appender.SMTPAppender.layout.ConversionPattern=%x%n%d [%t] %p %c - Critical Error in My App%n log4j.appender.SMTPAppender.Threshold=ERROR log4j.appender.SMTPAppender.evaluatorClass=??? -- 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]
