From 1fabeea72f2cd249ce25dfeb1c973643d45f47a4 Mon Sep 17 00:00:00 2001 From: Arman Bilge Date: Tue, 31 Oct 2023 14:32:35 +0000 Subject: [PATCH] More fixing --- build.sbt | 6 +++--- docs/README.md | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/build.sbt b/build.sbt index 47d9f6c3..e7594863 100644 --- a/build.sbt +++ b/build.sbt @@ -49,7 +49,8 @@ val munitCatsEffectV = "2.0.0-M3" val emberServer = Seq( "org.http4s" %% "http4s-ember-server" % http4sV, - "org.http4s" %% "http4s-dsl" % http4sV + "org.http4s" %% "http4s-dsl" % http4sV, + "org.typelevel" %% "log4cats-noop" % log4catsV ) val coreDeps = Seq( @@ -66,8 +67,7 @@ val coreDeps = Seq( ) ++ (emberServer ++ Seq( "org.http4s" %% "http4s-client-testkit" % http4sV, "org.scalameta" %% "munit" % munitV, - "org.typelevel" %% "munit-cats-effect" % munitCatsEffectV, - "org.typelevel" %% "log4cats-noop" % log4catsV + "org.typelevel" %% "munit-cats-effect" % munitCatsEffectV )).map(_ % Test) val scala213 = "2.13.10" diff --git a/docs/README.md b/docs/README.md index 987fccb7..34e74b3a 100644 --- a/docs/README.md +++ b/docs/README.md @@ -189,6 +189,11 @@ import org.http4s.dsl.io._ import org.http4s.implicits._ import org.http4s.ember.server.EmberServerBuilder import com.comcast.ip4s._ +import org.typelevel.log4cats.LoggerFactory +import org.typelevel.log4cats.noop.NoOpFactory + +implicit val loggerFactor: LoggerFactory[IO] = NoOpFactory[IO] + val echoServer = EmberServerBuilder.default[IO] .withPort(port"0") .withHttpWebSocketApp(wsb => HttpRoutes.of[IO] {