logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralph Goers <ralph.go...@dslextreme.com>
Subject Re: log4j2 parameterized msg with throwable
Date Sat, 17 Sep 2011 19:34:39 GMT

On Sep 17, 2011, at 12:26 PM, Joern Huxhorn wrote:

> The code simply looks like this:
> public void log(Level level, String messagePattern, Object... args) {
> 	if (!isEnabled(level)) return;
> 	ParameterizedMessage message = ParameterizedMessage.create(messagePattern, args);
> 	performLogging(level, null, message, message.getThrowable());
> }

Thanks. This is the source of the bug.  The API is currently not doing message.getThrowable().
I'll fix that shortly.

But I also do like John's suggestion that ParameterizedMessage and StructuredDataMessage could
be interfaces. What are your thoughts on that?


To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org

View raw message