Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/NeQuissimus/zio-slf4j
Referentially transparent logging with slf4j
https://github.com/NeQuissimus/zio-slf4j
Last synced: 3 months ago
JSON representation
Referentially transparent logging with slf4j
- Host: GitHub
- URL: https://github.com/NeQuissimus/zio-slf4j
- Owner: NeQuissimus
- License: apache-2.0
- Created: 2018-10-04T11:23:41.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-07-29T20:09:16.000Z (3 months ago)
- Last Synced: 2024-07-30T02:20:30.348Z (3 months ago)
- Language: Scala
- Size: 394 KB
- Stars: 21
- Watchers: 5
- Forks: 8
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zio - zio-slf4j
README
# zio-slf4j
Referentially transparent logging with slf4jDon't forget to include an implementation of `slf4j-api` (such as logback) on your classpath.
```
libraryDependencies += "com.nequissimus" %% "zio-slf4j" % "0.4.1"
```## Usage
For a simple usage example, see [sample.scala](src/test/scala/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`.