You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2003/11/04 14:02:36 UTC
DO NOT REPLY [Bug 24383] New: -
LoggingEvent.getMessage does not render
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=24383>.
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=24383
LoggingEvent.getMessage does not render
Summary: LoggingEvent.getMessage does not render
Product: Log4j
Version: 1.2beta
Platform: All
OS/Version: All
Status: NEW
Severity: Major
Priority: Other
Component: Other
AssignedTo: log4j-dev@jakarta.apache.org
ReportedBy: Martin.Heitz@gmx.de
Code in LoggingEvent.getMessage looks like this:
public
Object getMessage() {
if(message != null) {
return message;
} else {
return getRenderedMessage();
}
}
But I guess, it should look like this (otherwise message objects never get
rendered):
public
Object getMessage() {
if(renderedMessage != null) {
return renderedMessage;
} else {
return getRenderedMessage();
}
}
Version is log4j 1.28 (was not selectable in Form).
Best regards,
Mattin
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-dev-help@jakarta.apache.org