This page gives you a quick reference to get Apache Log4j API dependency for Maven or Gradle projects. You can also download the Apache Log4j API jar dependency, the link given at the "Download JAR File" section.
For more details about the proper version to use, check out the following Maven Central link.
Apache Log4j API Maven Dependency
Copy below Apache Log4j API maven dependency and paste in your project pom.xml file:
<!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-api -->
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.12.1</version>
</dependency>
Apache Log4j API Gradle Dependency
Copy below Apache Log4j API gradle dependency and paste in your project build.gradle file:
// https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-api
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.12.1'
Comments
Post a Comment