The log4j artifact is the log4j 1 implementation. slf4j-log4j12 is the adapter 
slf4j uses to bind the SLF4J API to log4j 1. 

FWIW, you shouldn’t be using either of these. Log4j 1 reached end-of-life two 
years ago and isn’t supported by anyone.

Ralph 


> On Nov 30, 2017, at 6:32 AM, Debraj Manna <subharaj.ma...@gmail.com> wrote:
> 
> Crossposting from stackoverflow
> <https://stackoverflow.com/questions/47574644/difference-between-slf4j-log4j12-vs-log4j>
> 
> In a project's pom.xml I am seeing a dependency like below
> 
> <dependency>
>        <groupId>org.slf4j</groupId>
>        <artifactId>slf4j-api</artifactId>
>        <version>1.7.5</version>
>    </dependency>
>    <dependency>
>        <groupId>org.slf4j</groupId>
>        <artifactId>slf4j-log4j12</artifactId>
>        <version>1.7.5</version>
>    </dependency>
>    <dependency>
>        <groupId>log4j</groupId>
>        <artifactId>log4j</artifactId>
>        <version>1.2.17</version>
>    </dependency>
> 
> 
> Can someone let me know what is the difference between slf-log4j12 & log4j ?



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org

Reply via email to