Skip to content
Referentially transparent logging with slf4j
Scala
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci Update build slaves Aug 4, 2019
project Try switching to CircleCI Apr 28, 2019
src Make Scalaz optional Aug 4, 2019
.gitignore Initial implementation Oct 4, 2018
.scalafmt.conf Initial project Oct 4, 2018
LICENSE Initial commit Oct 4, 2018
README.md Released 0.3.0 Aug 4, 2019
build.sbt Update slf4j-api to 1.7.28 Aug 11, 2019

README.md

zio-slf4j

Referentially transparent logging with slf4j

Don't forget to include an implementation of slf4j-api (such as logback) on your classpath.

libraryDependencies += "com.nequissimus" %% "zio-slf4j" % "0.3.0"

Usage

For a simple usage example, see sample.scala.

Scalaz

zio-slf4j's dependency on Scalaz is entirely optional. It will only be used if already available, and not brought in transitively.

If Scalaz is availble on the application's classpath, methods using Show can be used. Otherwise, log messages will need to be of type String.

You can’t perform that action at this time.