[slf4j-dev] [JIRA] Updates for SLF4J-540: Backward compatibility problem with 1.7.34 update
QOS.CH (JIRA)
noreply-jira at qos.ch
Tue Jan 25 18:12:00 CET 2022
SLF4J / SLF4J-540 [Open]
Backward compatibility problem with 1.7.34 update
==============================
Here's what changed in this issue in the last few minutes.
This issue has been created
There is 1 comment.
This issue is now assigned to you.
View or comment on issue using this link
https://jira.qos.ch/browse/SLF4J-540
==============================
Issue created
------------------------------
Archie Cobbs created this issue on 25/Jan/22 5:59 PM
Summary: Backward compatibility problem with 1.7.34 update
Issue Type: Bug
Affects Versions: 1.7.34
Assignee: SLF4J developers list
Components: Implementations
Created: 25/Jan/22 5:59 PM
Environment:
MacOS 12.1
Apache Maven 3.8.4 (9b656c72d54e5bacbed989b64718c159fe39b537)
Priority: Major
Reporter: Archie Cobbs
Severity: normal
Description:
I have a maven build for which logging during tests used to work.
Snippets from pom.xml:
{noformat}
<properties>
...
<slf4j.version>[1.7,1.8)</slf4j.version>
...
</properties>
...
<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>${slf4j.version}</version>
<scope>test</scope>
</dependency>
...
<dependencies>
{noformat}
Dependency tree snippet:
{noformat}
[WARNING] The artifact org.slf4j:slf4j-log4j12:jar:1.7.34 has been relocated to org.slf4j:slf4j-reload4j:jar:1.7.34
...
[INFO] +- org.slf4j:slf4j-api:jar:1.8.0-beta4:compile
[INFO] +- org.slf4j:slf4j-reload4j:jar:1.7.34:test
[INFO] | \- ch.qos.reload4j:reload4j:jar:1.2.18.3:test
{noformat}
Nothing has changed in my configuration, but after the 1.7.34 release, logging during tests no longer works and instead I see this:
{noformat}
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running TestSuite
SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#noProviders for further details.
SLF4J: Class path contains SLF4J bindings targeting slf4j-api versions prior to 1.8.
SLF4J: Ignoring binding found at [jar:file:/Users/archie/.m2/repository/org/slf4j/slf4j-reload4j/1.7.34/slf4j-reload4j-1.7.34.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#ignoredBindings for an explanation.
{noformat}
Is this backward-incompatibility expected?
FYI I was able to workaround the issue with these changes:
{noformat}
- <slf4j.version>[1.7,1.8)</slf4j.version>
+ <slf4j.version>1.7.34</slf4j.version>
...
- <artifactId>slf4j-log4j12</artifactId>
+ <artifactId>slf4j-reload4j</artifactId>
{noformat}
==============================
1 comment
------------------------------
Ceki Gülcü on 25/Jan/22 6:01 PM
Can you please try 1.7.35?
==============================
This message was sent by Atlassian Jira (v8.8.0#808000-sha1:e2c7e59)
More information about the slf4j-dev
mailing list