[slf4j-dev] BasicMDCAdapter
Gunnar Wagenknecht
gunnar at wagenknecht.org
Fri Jan 22 11:20:07 CET 2010
Hi,
I noticed that the BasicMDCAdapter uses a regular InheritableThreadLocal
while the LogbackMDCAdapter uses a custom "CopyOnInheritThreadLocal".
The JavaDoc implies that they should be similar. Any reasons why the
difference in implementation was chosen (perhaps performance, memory)?
Also BasicMDCAdapter seems to require Java 5 although it's part of the
SLF4J API library. It calls ThreadLocal#remove() directly (without
reflection) which does not exists in JDK <= 1.4.
-Gunnar
--
Gunnar Wagenknecht
gunnar at wagenknecht.org
http://wagenknecht.org/
More information about the slf4j-dev
mailing list