Apache Log4j SLF4J Binding

org.apache.logging.log4j : log4j-slf4j-impl

The Apache Log4j SLF4J API binding to Log4j 2 Core

[Website] ·
3k usages

Add dependency in Maven / Gradle

<dependency>
    <groupId>org.apache.logging.log4j</groupId>
    <artifactId>log4j-slf4j-impl</artifactId>
    <version>2.17.1</version>
</dependency>

How to add dependency in a project

  1. Add dependency to a Maven project
  2. Add dependency to a Gradle project
  3. Add dependency to a SBT Scala project
  4. Add dependency to a Grape project

1. Add dependency to a Maven project

Maven: Add the org.apache.logging.log4j:log4j-slf4j-impl library to the dependencies element of your pom.xml file:

<dependencies>
<dependency>
  <groupId>org.apache.logging.log4j</groupId>
  <artifactId>log4j-slf4j-impl</artifactId>
  <version>2.17.1</version>
</dependency>
</dependencies>

To install org.apache.logging.log4j:log4j-slf4j-impl library use the following command:

mvn install

2. Add dependency to a Gradle project

Gradle Groovy DSL: Add the org.apache.logging.log4j:log4j-slf4j-impl library to the dependencies section of your build.gradle file:

dependencies {
implementation 'org.apache.logging.log4j:log4j-slf4j-impl:2.17.1'
}

Gradle Kotlin DSL: Add the org.apache.logging.log4j:log4j-slf4j-impl library to the dependencies section of your build.gradle.kts file:

dependencies {
implementation("org.apache.logging.log4j:log4j-slf4j-impl:2.17.1")
}

3. Add dependency to a SBT Scala project

Scala: Add the org.apache.logging.log4j:log4j-slf4j-impl library to your build.sbt file:

libraryDependencies += "org.apache.logging.log4j" % "log4j-slf4j-impl" % "2.17.1"

4. Add dependency to a Grape project

Grape: Add an annotation org.apache.logging.log4j:log4j-slf4j-impl library to your groovy script file:

@Grapes(
    @Grab('org.apache.logging.log4j:log4j-slf4j-impl:2.17.1')
)

Compile Dependencies (0)

Group / Artifact Usage

Provided Dependencies (0)

Group / Artifact Usage

Test Dependencies (5)