logo
首页技术栈工具库讨论
monad-log

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.
由 
bruceshi2021-01-13 收录
--
推荐
不推荐
更多信息
HACKAGE
carbal install monad-log
查看
标签
根据用户添加的标签生成
暂无标签