NeQuissimus/zio-slf4j
Referentially transparent logging with slf4j
{ "createdAt": "2018-10-04T11:23:41Z", "defaultBranch": "master", "description": "Referentially transparent logging with slf4j", "fullName": "NeQuissimus/zio-slf4j", "homepage": null, "language": "Scala", "name": "zio-slf4j", "pushedAt": "2025-01-16T11:14:56Z", "stargazersCount": 21, "topics": [], "updatedAt": "2024-09-26T16:54:46Z", "url": "https://github.com/NeQuissimus/zio-slf4j"}zio-slf4j
Section titled “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.4.1"For a simple usage example, see [sample.scala]!(src/test/scala/sample.scala).
Scalaz
Section titled “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.