SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder"
kkirsche opened this issue · comments
Following the "Diving in" guide leaves issues.
First, I make a new project, make the following build.sbt
file:
name := "Scala API Interaction Library"
version := "0.1.0"
scalaVersion := "2.11.6"
libraryDependencies +=
"net.databinder.dispatch" %% "dispatch-core" % "0.11.2"
With that configured, I create a new file for my application to run from and populate it per the guide:
import dispatch._, Defaults._
object Boot extends App {
//try to start with making a very simple GET HTTP request
val svc = url("http://rubygems.org/api/v1/downloads.json").GET
val downloads = Http(svc OK as.String)
for (d <- downloads)
println(d)
}
Then try to run it with sbt
followed by run
and I get the following output:
[info] Running Boot
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.
[success] Total time: 1 s, completed Apr 17, 2015 11:41:33 AM
Any help you could provide to help me get started would be greatly appreciated.
Oops. missed libraryDependencies += "ch.qos.logback" % "logback-classic" % "1.1.2"
as it's not in the docs.