Hello,
It seems to me as if Objects which you put in an MDC are not correctly
rendered. That is, they get rendered simply by calling the toString method
instead of using the renderers registered.
I suppose the problem resides in helpers/PatternParser.java:
private static class MDCPatternConverter extends PatternConverter {
private String key;
MDCPatternConverter(FormattingInfo formattingInfo, String key) {
super(formattingInfo);
this.key = key;
}
public
String convert(LoggingEvent event) {
Object val = event.getMDC(key);
if(val == null) {
return null;
} else {
return val.toString();
^^^^^^^^^^^^^^
}
}
}
But don't ask me how to fix it :-)
Best regards,
Francois Staes.
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>