scribe icon indicating copy to clipboard operation
scribe copied to clipboard

`scribe-slf4j` does not support `slf4j-api` 2.x and `scribe-slf4j18` does not exist

Open arturaz opened this issue 1 year ago • 2 comments

When running the app I get:

SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details.
SLF4J: Class path contains SLF4J bindings targeting slf4j-api versions 1.7.x or earlier.
SLF4J: Ignoring binding found at [jar:file:/home/x11/.cache/coursier/v1/https/repo1.maven.org/maven2/com/outr/scribe-slf4j_3/3.13.2/scribe-slf4j_3-3.13.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See https://www.slf4j.org/codes.html#ignoredBindings for an explanation.

Dependency tree:

$ ./mill server.ivyDepsTree --whatDependsOn org.slf4j:slf4j-api
[33/33] server.ivyDepsTree 
└─ org.slf4j:slf4j-api:2.0.7
   ├─ com.google.firebase:firebase-admin:9.2.0
   ├─ com.outr:scribe-slf4j_3:3.13.2 org.slf4j:slf4j-api:1.7.36 -> 2.0.7
   ├─ org.log4s:log4s_3:1.10.0 org.slf4j:slf4j-api:1.7.30 -> 2.0.7
   │  └─ org.http4s:http4s-core_3:0.23.26
   │     ├─ org.http4s:http4s-ember-core_3:0.23.26
   │     │  └─ org.http4s:http4s-ember-server_3:0.23.26
   │     └─ org.http4s:http4s-server_3:0.23.26
   │        ├─ com.softwaremill.sttp.tapir:tapir-http4s-server_3:1.10.4
   │        └─ org.http4s:http4s-ember-server_3:0.23.26
   └─ org.typelevel:log4cats-slf4j_3:2.6.0 org.slf4j:slf4j-api:1.7.36 -> 2.0.7
      ├─ org.http4s:http4s-core_3:0.23.26
      │  ├─ org.http4s:http4s-ember-core_3:0.23.26
      │  │  └─ org.http4s:http4s-ember-server_3:0.23.26
      │  └─ org.http4s:http4s-server_3:0.23.26
      │     ├─ com.softwaremill.sttp.tapir:tapir-http4s-server_3:1.10.4
      │     └─ org.http4s:http4s-ember-server_3:0.23.26
      └─ org.http4s:http4s-ember-server_3:0.23.26

According to https://www.slf4j.org/download.html 2.0.13 is the stable version. As far as I understand there was some API change around slf4j 1.8?

arturaz avatar Apr 19 '24 14:04 arturaz

Turns out there is https://mvnrepository.com/artifact/com.outr/scribe-slf4j2 but https://github.com/outr/scribe/wiki/slf4j does not document its existence.

arturaz avatar Apr 19 '24 14:04 arturaz

Thanks for letting me know; I updated the wiki. Just to confirm, using scribe-slf4j2 solves your issues?

darkfrog26 avatar Apr 19 '24 16:04 darkfrog26

Closing for lack of response

darkfrog26 avatar May 09 '24 16:05 darkfrog26

Gosh, github notifications are weird. Or maybe I just misconfigured them. Yes, scribe-slf4j2 works perfectly, thanks.

arturaz avatar May 27 '24 21:05 arturaz