We are using maven project and need to check we are using log4j or log4j2 in the java application .
Please guide me the best practice
below is my pom.xml
<properties>
<!-- Avoid warnings about platform encoding -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<powermock.version>1.6.2</powermock.version>
<log4j.version>2.3</log4j.version>
</properties><dependencies>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>${log4j.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>${log4j.version}</version>
</dependency><dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-1.2-api</artifactId>
<version>${log4j.version}</version>
</dependency>
</project>
dependency:tree
-api
deps?... Also typical using a version 2.3 which is of 2015 !!! which means not updated a very long time...