我已經得到了實現SLF4J接口和執行類路徑org.slf4j.spi.LoggerFactoryBinder
類org.slf4j.impl.StaticLoggerBinder
一個記錄器,因爲它是在同一個罐子其他需要的依賴。混合SLF4J Log4J的與
現在我想在僅使用Log4J
接口的項目中使用Log4J-Logger,但依賴於使用SLF4J的其他庫。因此我將不得不將SLF4J-LOG4J-Bridge
放入類路徑中。
我想知道如果我org.slf4j.impl.StaticLoggerBinder
將與SLF4J-LOG4J-Bridge
干擾。我必須刪除我的org.slf4j.impl.StaticLoggerBinder
才能使LOG4J-Logger
正常工作。或不同問:請問SLF4J-LOG4J-Bridge
也實現了org.slf4j.impl.StaticLoggerBinder
?
謝謝,我從來沒有說過org.slf4j.impl.StaticLoggerBinder是一個接口。 brigde的使用比實施StaticLoggerBinder有更高的優先級嗎? – 2012-02-28 13:14:43
我的理解是從_Does的SLF4J-LOG4J橋還實現org.slf4j.impl.StaticLoggerBinder?_的SLF4J-LOG4J橋不包含'StaticLoggerBinder'所以該類不會干涉干涉。 – amra 2012-02-28 13:53:39