https://issues.apache.org/bugzilla/show_bug.cgi?id=41214

--- Comment #42 from Gary Gregory <[email protected]> ---
It's not as simple as:

this.message = message != null ? message.toString() : null;

because of the implementation of
org.apache.log4j.spi.LoggingEvent.getRenderedMessage()

I do like turning the Object into a String in the constructor because you get a
snapshot of the message in one place, not at some later time; and calling
toString() can give you different values when called repeatedly.

What about submitting a patch?

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to