bpholt opened a new issue, #2065: URL: https://github.com/apache/logging-log4j2/issues/2065
## Description log4j-slf4j-impl 2.22.0 appears to depend on slf4j 2, and not slf4j 1 [as described by the documentation](https://logging.apache.org/log4j/2.x/log4j-slf4j-impl.html). ## Configuration **Version:** 2.22.0 **Operating system:** MacOS 13.5.1 **JDK:** I've tried Eclipse Adoptium Java 11.0.18 and Amazon.com Inc. Java 17.0.9 but I don't think it would matter ## Logs Not applicable ## Reproduction Using the following `build.sbt` file: ```scala libraryDependencies += "org.apache.logging.log4j" % "log4j-slf4j-impl" % "2.22.0" ``` then run `sbt "show fullClasspath"`: ``` $ sbt "show fullClasspath" [info] welcome to sbt 1.9.7 (Eclipse Adoptium Java 11.0.18) [info] loading settings for project global-plugins from global.sbt ... [info] loading global plugins from ~/.sbt/1.0/plugins [info] loading project definition from ~/log4j2-slf4j/project [info] loading settings for project log4j2-slf4j from build.sbt ... [info] set current project to log4j2-slf4j (in build file:~/log4j2-slf4j/) [info] * Attributed(~/log4j2-slf4j/target/scala-2.12/classes) [info] * Attributed(~/.sbt/boot/scala-2.12.18/lib/scala-library.jar) [info] * Attributed(~/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/apache/logging/log4j/log4j-slf4j-impl/2.22.0/log4j-slf4j-impl-2.22.0.jar) [info] * Attributed(~/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/apache/logging/log4j/log4j-api/2.22.0/log4j-api-2.22.0.jar) [info] * Attributed(~/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/slf4j/slf4j-api/2.0.9/slf4j-api-2.0.9.jar) [info] * Attributed(~/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/apache/logging/log4j/log4j-core/2.22.0/log4j-core-2.22.0.jar) [success] Total time: 1 s, completed Dec 5, 2023, 5:58:16 PM ``` Note the `slf4j-api` version: `2.0.9`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
