logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 41214] Deadlock with RollingFileAppender
Date Sun, 01 Jul 2012 15:33:46 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=41214

--- Comment #42 from Gary Gregory <garydgregory@gmail.com> ---
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: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message