[slf4j-dev] Consolidating the LoggerFactory / A better plugin mechanism

Boris Unckel boris.unckel.mlg at gmx.net
Thu Feb 15 23:23:22 CET 2007


Hello,

Eric Crahen wrote:
> Create a single LoggerFactory and placed it into slf4j-api, and 
> deleted the LoggerFactory classes everywhere else they exist 
> (slf4j-simple, logback, etc). This new LoggerFactory leverages Sun's 
> ServiceProvider API which exists in all JDK's since 1.4 (maybe 1.3). 
> It looks like this:
>
just one thing:
Could you explain what happens if two or more classes/jars provide the 
service?
If more than one class/jar provides the service, which one is taken? 
Which one has to be taken by the factory?

Regards
Boris




More information about the slf4j-dev mailing list