logging-facade

An experimental logging API for Haskell, inspired by slf4j


Keywords
mit, system, Propose Tags, , Index, Quick Jump, System.Logging.Facade, System.Logging.Facade.Class, System.Logging.Facade.Sink, System.Logging.Facade.Types, logging-facade-0.3.1.tar.gz, browse, Package description, Package maintainers, SimonHengel, SoenkeHahn, edit package information
License
MIT
Install
cabal install logging-facade-0.3.1

Documentation

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 both syslog and journald: