Apache logging services logo Apache log4j logo

Dependency Information

Apache Maven

<dependency>
  <groupId>org.apache.logging.log4j</groupId>
  <artifactId>log4j-api</artifactId>
  <version>2.9.1</version>
</dependency>

Apache Buildr

'org.apache.logging.log4j:log4j-api:jar:2.9.1'

Apache Ivy

<dependency org="org.apache.logging.log4j" name="log4j-api" rev="2.9.1">
  <artifact name="log4j-api" type="jar" />
</dependency>

Groovy Grape

@Grapes(
@Grab(group='org.apache.logging.log4j', module='log4j-api', version='2.9.1')
)

Gradle/Grails

compile 'org.apache.logging.log4j:log4j-api:2.9.1'

Scala SBT

libraryDependencies += "org.apache.logging.log4j" % "log4j-api" % "2.9.1"

Leiningen

[org.apache.logging.log4j/log4j-api "2.9.1"]