Skip to content

0.5.0 - SLF4J 2.x.x support, bumped dependencies

Compare
Choose a tag to compare
@hejfelix hejfelix released this 13 Mar 08:07
· 170 commits to main since this release

What's Changed

The highlight here is the woof-slf4j-2 module. With this comes a minor breaking change. Previously, the slf4j wrapper would dispatch the logging effect using IO directly, i.e. no Dispatcher[F] needed. With the new implementation, most of the moving parts have been abstracted, but the user must supply a Dispatcher[F] when calling .registerSlf4j:

import org.legogroup.woof.slf4j.*
+import cats.effect.std.Dispatcher
val mainSlf4j: IO[Unit] = 
+ Dispatcher.sequential[IO].use{ implicit dispatcher =>
    for
      woofLogger  <- DefaultLogger.makeIo(consoleOutput)
      _           <- woofLogger.registerSlf4j
      _           <- programWithSlf4j
    yield ()
+ }

Full Changelog: v0.4.7...v0.5.0