Hi Steve,
Your question really should be directed to the SLF4J mailing list [1], as
Log4j already provides what you need. Your question deals with why doesn't
SLF4J provide what Log4j provides, which the Log4j team cannot
authoritatively answer.
[1] http://slf4j.org/mailing-lists.html
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
I haven't used MDC's in awhile but today I thought I saw a way to put
them to advantage for an application I'm working on. In doing so,
though ,I stumbled upon an incompatibility between log4j's MDC and
slf4j's MDC that I've not seen much comment on.
The signatures for the get() and put()