iolog4s

Maven Central Sonatype Scala Scala


Deprecation notice!

See entire docs at microsite.

iolog4s is no longer maintained. It has been completely integrated into log4cats as of its version 0.0.5. I highly recommend you use that instead.

The reason behind this is quite simple, both iolog4s and log4cats have appeared on the scene at roughly the same time, and we decided to merge the effort of creating a logging library for the typelevel ecosystem.

usage

See the getting started section of the docs

SBT

Avaialble for scala versions 2.11, and 2.12.

"org.iolog4s" %% "iolog4s" % "0.0.4"

You also need to depend on explicitly on a backend for logging, e.g.:

"ch.qos.logback" % "logback-classic" % "1.2.3"

about

iolog4s is a logging library for scala that suspends all your logging side-effects into your chosen cats.effect.Sync instance, e.g.:

iolog4s has the same interface as log4s, except all return types are of type F[Unit] where F[_]: Sync.

credit

The vast majority of the development effort goes to the authors of log4s, as the code here is mostly altered versions of their macros. So please extend all your thanks to them! It also means that you can expect the same reliability.

maintainers

Active maintainers: