This is an automated email from the ASF dual-hosted git repository.

onobc pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-client-reactive.git


The following commit(s) were added to refs/heads/main by this push:
     new 047ad9b  Use slf4j2 implementation log4j-slf4j2-impl
047ad9b is described below

commit 047ad9b2376d51998c84d1237c39632e8d6d65ad
Author: Lari Hotari <[email protected]>
AuthorDate: Thu Dec 12 18:49:21 2024 +0200

    Use slf4j2 implementation log4j-slf4j2-impl
    
    Fixes this error message:
    ```
      SLF4J(W): No SLF4J providers were found.
      SLF4J(W): Defaulting to no-operation (NOP) logger implementation
      SLF4J(W): See https://www.slf4j.org/codes.html#noProviders for further 
details.
      SLF4J(W): Class path contains SLF4J bindings targeting slf4j-api versions 
1.7.x or earlier.
      SLF4J(W): Ignoring binding found at 
[jar:file:/Users/lari/.gradle/caches/modules-2/files-2.1/org.apache.logging.log4j/log4j-slf4j-impl/2.23.1/9ef67909a1b4eae999af4c7a211ab2379e4b86c2/log4j-slf4j-impl-2.23.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
      SLF4J(W): See https://www.slf4j.org/codes.html#ignoredBindings for an 
explanation.
    ```
---
 gradle/libs.versions.toml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml
index d2848f9..684e39f 100644
--- a/gradle/libs.versions.toml
+++ b/gradle/libs.versions.toml
@@ -48,7 +48,7 @@ junit-jupiter-params = { module = 
"org.junit.jupiter:junit-jupiter-params", vers
 licenser = { module = "gradle.plugin.org.cadixdev.gradle:licenser", 
version.ref = "licenser" }
 log4j-api = { module = "org.apache.logging.log4j:log4j-api", version.ref = 
"log4j" }
 log4j-core = { module = "org.apache.logging.log4j:log4j-core", version.ref = 
"log4j" }
-log4j-slf4j-impl = { module = "org.apache.logging.log4j:log4j-slf4j-impl", 
version.ref = "log4j" }
+log4j-slf4j2-impl = { module = "org.apache.logging.log4j:log4j-slf4j2-impl", 
version.ref = "log4j" }
 mockito-core = { module = "org.mockito:mockito-core", version.ref = "mockito" }
 pulsar-client-api = { module = "org.apache.pulsar:pulsar-client-api", 
version.ref = "pulsar" }
 pulsar-client-shaded = { module = "org.apache.pulsar:pulsar-client", 
version.ref = "pulsar" }
@@ -65,7 +65,7 @@ testlogger = { module = 
"com.adarshr:gradle-test-logger-plugin", version.ref = "
 log4j = [
     "log4j-api",
     "log4j-core",
-    "log4j-slf4j-impl",
+    "log4j-slf4j2-impl",
     "slf4j-api",
 ]
 

Reply via email to