Apache logging services logo Apache log4j logo

Dependency Information

Apache Maven

<dependency>
  <groupId>org.apache.logging.log4j</groupId>
  <artifactId>log4j</artifactId>
  <version>2.1</version>
  <type>pom</type>
</dependency>

Apache Buildr

'org.apache.logging.log4j:log4j:pom:2.1'

Apache Ant

<dependency org="org.apache.logging.log4j" name="log4j" rev="2.1">
  <artifact name="log4j" type="pom" />
</dependency>

Groovy Grape

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

Grails

compile 'org.apache.logging.log4j:log4j:2.1'

Leiningen

[org.apache.logging.log4j/log4j "2.1"]

SBT

libraryDependencies += "org.apache.logging.log4j" %% "log4j" % "2.1"