Re: org.apache.log4j.MDC vs. org.slf4j.MDC

2011-11-02 Thread Jacob Kjome
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

Re: org.apache.log4j.MDC vs. org.slf4j.MDC

2011-11-02 Thread ceki
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

org.apache.log4j.MDC vs. org.slf4j.MDC

2011-11-01 Thread Steve Cohen
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()