logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <garydgreg...@gmail.com>
Subject Understanding ParameterizedMessage and so on
Date Sun, 22 Jul 2012 12:50:56 GMT
Hi All:

Why does ParameterizedMessage class not implement the FormattedMessage
interface? Are we making a conceptual difference between a formatted
message and a parameterized message?

The FM Javadoc says "A Message that can have a format String attached to
it"; PM has a formattedMessage and messagePattern String. A messagePatterm
sounds like a "format String" to me.

Would it not be simpler to have
org.apache.logging.log4j.message.Message.getFormattedMessage() as
toString()? Is a toString() on each Message impl that useful for debugging
that it overrides the simplicity of using toString?

ThreadDumpMessage does not implement toString(). Is that on purpose or an

E-Mail: garydgregory@gmail.com | ggregory@apache.org
JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

View raw message