Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

hackage.haskell.org : monad-log

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 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.

Registry - JSON
purl: pkg:hackage/monad-log
Keywords: development, library, mit
License: MIT
Latest release: about 8 years ago
First release: about 8 years ago
Dependent repositories: 1
Downloads: 1,649 total
Last synced: 4 days ago

    Loading...
    Readme
    Loading...