
22 Jan
2010
22 Jan
'10
10:20 a.m.
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@wagenknecht.org http://wagenknecht.org/