java - Difference between slf4j-log4j12 and log4j-over-slf4j -


what's difference between slf4j-log4j12 , log4j-over-slf4j , when should each used?

<dependency>     <groupid>org.slf4j</groupid>     <artifactid>slf4j-log4j12</artifactid>     <version>1.7.12</version> </dependency> <dependency>     <groupid>org.slf4j</groupid>     <artifactid>log4j-over-slf4j</artifactid>     <version>1.7.12</version> </dependency> 

log4j-over-slf4j 

use if code or libraries using uses log4j directly, want use different slf4j binding log4j. route log4j api calls slf4j binding choose. need remove log4j library classpath , replace dependency.

slf4j-log4j12 

use if want use log4j 1.2 binding slf4j. please note log4j 2 has been released.

you shouldn't use both of these libraries at same time.


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -