monadlog: A simple and fast logging monad
This package is a fork of great `monad-log`, as the original author is unreachable.
It provides 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
MonadIO
.Parametrized logging environment for extensibility.
Basic logging environment type(
Label
,Loc
,NameSpace
,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]
Modules
[Index]
Downloads
- monadlog-0.1.1.1.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1.1.1 |
---|---|
Change log | CHANGELOG.md |
Dependencies | aeson (>=0.4 && <1.2.4), 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] |
License | MIT |
Author | winterland1989, zmactep |
Maintainer | pavel@yakovlev.me |
Revised | Revision 1 made by zmactep at 2017-11-07T06:15:06Z |
Category | Development |
Source repo | head: git clone https://github.com/zmactep/monadlog |
Uploaded | by zmactep at 2017-11-07T06:14:08Z |
Distributions | |
Reverse Dependencies | 1 direct, 0 indirect [details] |
Downloads | 1025 total (1 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2017-11-07 [all 1 reports] |