The monad-log package
This package provide a mtl style
MonadLog class and a concrete monad transformer
LogT, the main difference between this package and monad-logger are:
Base monad has to be an instance of
Parametrized logging environment for extensibility.
Basic logging environment type(
ThreadId) are included, and you can easily make your own.
JSON logging built-in.
default to fast-logger backend, with good stdout and file support.
If you are an application author, you can use
LogT transformer, it's just a specialized reader monad to inject `Logger env`.
If you are a library author, you should do following two things:
make your monad stack an instance of
MonadLog, usually you can do this by embedding `Logger env` into your monad's reader part.
provide a default formatter, and API to run with customized formatter.
[Skip to Readme]
|Versions||0.1.0.0, 0.1.1.0 (info)|
|Dependencies||aeson (>=0.4 && <0.12), base (>=4.6 && <5), bytestring, exceptions (>=0.6 && <0.9), fast-logger (>=2.4.5 && <2.5), lifted-base, monad-control (>=0.3 && <1.1), template-haskell, text, text-show, transformers (>=0.2) [details]|
|Source repository||head: git clone https://github.com/winterland1989/monad-log|
|Uploaded||Mon Apr 25 15:06:03 UTC 2016 by winterland|
|Downloads||144 total (33 in the last 30 days)|
|Rating||(no votes yet) [estimated by rule of succession]|
|Status||Docs available [build log]
Last success reported on 2016-04-25 [all 1 reports]
Hackage Matrix CI
For package maintainers and hackage trustees