[slf4j-user] Why is org.slf4j.NDC in the JavaDocs?
Ceki Gulcu
ceki at qos.ch
Fri Jul 10 10:28:54 CEST 2009
scott.tabar at fuse.net wrote:
> Greetings,
>
> NDC in log4j is working great for me. I really don't want this thread to degrade in to why MDC may be better; I'd like to have this question answered first.
>
> I was very happy to see it in the slf4j JavaDocs:
> http://www.slf4j.org/api/org/slf4j/NDC.html
>
> But when I tried to actually use it, it was then when I found out that the class really does not exist. At least not in v1.5.8 (or going back to v1.5.2).
NDC is included in the slf4j-ext module (slf4j-ext.jar). It is
implemented in terms of MDC. The fact that NDC is in the org.slf4j
package can be confusing. Sorry about that.
If NDC over MDC meets your needs and you wish to see it included in
the slf4j-api module, then please do enter a bug report.
> Thanks for any and all answers.
>
> Scott Tabar
>
--
Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch
More information about the slf4j-user
mailing list