Student
Student

Reputation: 28345

How to check the version of log4j used by a given slf4j?

I have the slf4j jar, and inside it there's a pom with

<dependency>

  <groupId>log4j</groupId>

  <artifactId>log4j</artifactId>

</dependency>

There's no version specified. Does that mean it's using the last version?

The jar name is slf4j-log4j12, does that mean it's using log4j 1.2?

Upvotes: 2

Views: 1663

Answers (1)

SiKing
SiKing

Reputation: 10329

You could run

mvn dependency:tree | grep "log4j"

in your project, to see what version of log4j you are using.

As to your other question, "log4j12" does not mean version 1.2; see maven.org.

Upvotes: 2

Related Questions