Bug 45969

Summary: SMTPAppender does not force evaluation message at time of request
Product: Log4j - Now in Jira Reporter: Curt Arnold <carnold>
Component: AppenderAssignee: log4j-dev <log4j-dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 1.2   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X 10.4   

Description Curt Arnold 2008-10-08 15:00:32 UTC
SMTPAppender can place LoggingEvents into a queue for later processing, but does not call LoggingEvent.getRenderedMessage() or LoggingEvent.getThrowableStringRep() which would force immediate evaluation of the message and throwable, so the eventual message may be affected by changes in the message parameter or throwable that occur after the logging request.
Comment 1 Curt Arnold 2008-10-08 15:07:00 UTC
Fixed in rev 703006