Failed to load class from slf4j

Hello community,
Though this is not related not directly to Scala language, I’m looking for a hlep with my problem: I tried to create a server with Scrooge (Thrift for Scala) + Finagle from :
https://github.com/twitter/finagle/blob/develop/finagle-example/src/main/scala/com/twitter/finagle/example/thrift/ThriftServer.scala
I have this error I’m stuck with:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

With build.sbt:
name := “hello”

version := “0.1”

scalaVersion := “2.13.8”

lazy val root = (project in file("."))
.settings(
name := “Example”,
libraryDependencies ++= Seq(
“org.apache.thrift” % “libthrift” % “0.15.0”,
“com.twitter” %% “scrooge-core” % “21.12.0”,
“com.twitter” %% “finagle-thrift” % “21.12.0”,
“org.slf4j” % “slf4j-api” % “1.7.5”,
)
)

And the plugins.sbt:
addSbtPlugin(“com.typesafe.sbt” % “sbt-native-packager” % “1.3.4”)
addSbtPlugin(“com.eed3si9n” % “sbt-assembly” % “0.15.0”)
addSbtPlugin(“com.twitter” % “scrooge-sbt-plugin” % “21.12.0”)

What is slf4j ? Why this error ?
Thank you for your help,
Best regards

slf4j is the “simple logging framework for java”. The error is just a warning and can be safely ignored unless you want to log something. In the latter case you should have some slf4j dependency in your classpath (depending on the kind of logging you want).

Siddhartha

1 Like

Thank you for replying. Yew, I read that also on provided link, but when I launch the server, nothing happens.

Can you be more specific than “nothing happens”? What were you expecting to happen?