An experimental logging API for Haskell, inspired by slf4j
Haskell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/System/Logging
test
.ghci
.gitignore
.travis.yml
LICENSE
README.md
Setup.lhs
logging-facade.cabal
package.yaml

README.md

logging-facade

A logging API for Haskell, inspired by slf4j. Code that logs messages with logging-facade doesn't have to depend on or make any decisions about the logging backend that you want to use in the end. Choosing the logging backend can be done at the top-most level -- e.g. in the main function of your executable. Only at that point you have to actually depend on the libraries that you need for whatever logging backend you're going for.

logging-facade itself only depends on libraries that ship with ghc.

logging-facade has a sensible default: logging to stderr. And there are back ends for syslog and journald: