Scott Deboy skrev  den 04-12-2008 05:22:
I'd like to understand why the Logger trace/debug etc. base methods take a string instead of an object.
I'd like to think there's usefulness in supporting something like 
ObjectRenderer or ReflectionPolicy/MapPolicy+RewriteAppender - supporting only 
strings makes this difficult.

Whatever we do moving forward, I'd like to see increased support for 
properties.  MDC and NDC are useful, but something that isn't thread specific 
would be useful (one reason why property rewrite policy/rewriteappender were 
created was to get around this limitation).


If I understand Ceki correctly it is the MESSAGE that is a String, not the additional arguments for the formatting part.

The message can contain {}-pairs which is then replaced with additional arguments - these can be objects. This allows for postponding the flattening process til after it has been decided that the event will not be discarded.

On a related note I would like to have better terms than "NDC" and "MDC" as nobody can figure out what they do unless they do a lot of reading. Additionally the two terms are so similar I tend to confuse the two.

MDC could be "Log ThreadMap"?

--
 Thorbjørn Ravn Andersen  "...plus... Tubular Bells!"


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to