Skip to content

Commit 047ad9b

Browse files
authored
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. ```
1 parent ae57698 commit 047ad9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gradle/libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ junit-jupiter-params = { module = "org.junit.jupiter:junit-jupiter-params", vers
4848
licenser = { module = "gradle.plugin.org.cadixdev.gradle:licenser", version.ref = "licenser" }
4949
log4j-api = { module = "org.apache.logging.log4j:log4j-api", version.ref = "log4j" }
5050
log4j-core = { module = "org.apache.logging.log4j:log4j-core", version.ref = "log4j" }
51-
log4j-slf4j-impl = { module = "org.apache.logging.log4j:log4j-slf4j-impl", version.ref = "log4j" }
51+
log4j-slf4j2-impl = { module = "org.apache.logging.log4j:log4j-slf4j2-impl", version.ref = "log4j" }
5252
mockito-core = { module = "org.mockito:mockito-core", version.ref = "mockito" }
5353
pulsar-client-api = { module = "org.apache.pulsar:pulsar-client-api", version.ref = "pulsar" }
5454
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 = "
6565
log4j = [
6666
"log4j-api",
6767
"log4j-core",
68-
"log4j-slf4j-impl",
68+
"log4j-slf4j2-impl",
6969
"slf4j-api",
7070
]
7171

0 commit comments

Comments
 (0)