Popularity
7.7
Stable
Activity
0.0
Stable
7
17
0

Monthly Downloads: 39
Programming language: HTML
License: LicenseRef-Apache
Tags: Control     System     Monad    
Latest version: v0.1.12

monad-logger-prefix alternatives and similar packages

Based on the "monad" category.
Alternatively, view monad-logger-prefix alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of monad-logger-prefix or a related project?

Add another 'monad' Package

README

monad-logger-prefix

Build Status

This package provides an easy way to add prefixes to any MonadLogger. Here's a brief example:

{-# LANGUAGE TemplateHaskell #-}

import Control.Monad.Logger
import Control.Monad.Logger.Prefix

main :: IO ()
main = runStdoutLoggingT $ do
    $(logDebug) "This one has no prefix."

    "foo" `prefixLogs` do
        $(logDebug) "This one has a [foo] prefix."

        "bar" `prefixLogs` do
            $(logDebug) "This one has both [foo] and [bar] prefixes."

The package includes a benchmark demonstrating that there is no performance difference with ordinary logging.