monadlog-0.1.1.1: monadlog.cabal
name: monadlog
version: 0.1.1.1
synopsis: A simple and fast logging monad
description:
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.
license: MIT
license-file: LICENSE
author: winterland1989, zmactep
maintainer: pavel@yakovlev.me
category: Development
build-type: Simple
extra-source-files: CHANGELOG.md README.md
cabal-version: >=1.10
library
ghc-options: -Wall
exposed-modules: Control.Monad.Log
, Control.Monad.Log.Label
, Control.Monad.Log.LogLoc
, Control.Monad.Log.NameSpace
, Control.Monad.Log.LogThreadId
-- other-modules:
-- other-extensions:
build-depends: base >=4.6 && <5
, fast-logger >=2.4.5 && <2.5
, monad-control >=0.3 && <1.1
, lifted-base
, exceptions >=0.6 && <0.9
, bytestring
, text
, text-show
, transformers >=0.2
, aeson >= 0.4 && <1.2.4
, template-haskell
-- hs-source-dirs:
default-language: Haskell2010
source-repository head
type: git
location: https://github.com/zmactep/monad-log