[slf4j-dev] Rearranging classes

Ceki Gülcü listid at qos.ch
Tue Feb 13 22:18:54 CET 2007


At 10:12 PM 2/13/2007, Eric Crahen wrote:
>I don't understand your concern about reliance on the thread context class 
>loader. The ServiceLoader mechanism is a well established method for doing 
>this reliably. This happens all over the JDK, from character sets, to 
>encryption schemes. It works very well and gives you a much cleaner 
>separation.

The SLF4J approach is pretty dumb but it is also easy to follow when things 
go awry. Not relying on class loader machinery is one the hard-earned 
lessons from JCL. Admittedly though, I am not that familiar with the 
ServiceLoader mechanism so I'll have a closer look at it.

-- 
Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch




More information about the slf4j-dev mailing list