On 02.11.2011 04:04, Steve Cohen wrote:

> But why was the ability to store non-Strings [in MDC] removed
> between log4j and slf4j in the first place?

Since java Strings are immutable, once inserted into the MDC, values
cannot be changed (voluntarily or otherwise). This makes SLF4J-style
MDC more predictable and less error prone. Of course, SLF4J's the
stricter MDC interface allows less flexibility.
--
Ceki
http://twitter.com/#!/ceki

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to