Popularity
5.4
Declining
Activity
0.0
Stable
4
4
3
Monthly Downloads: 32
Programming language: Haskell
License: LicenseRef-PublicDomain
hslogger-template alternatives and similar packages
Based on the "hslogger" category.
Alternatively, view hslogger-template alternatives based on common mentions on social networks and blogs.
Do you think we are missing an alternative of hslogger-template or a related project?
README
hslogger-template generates hslogger functions using Template Haskell. The generated functions specify the name of the current module, so you don't have to.
Example:
module Foo.Bar ( ... ) where
import System.Log.Logger.TH (deriveLoggers)
import qualified System.Log.Logger as HSL
$(deriveLoggers "HSL" [HSL.DEBUG, HSL.INFO])
Used this way, deriveLoggers
would generate the following functions:
infoM :: MonadIO m => String -> m ()
infoM s = liftIO (HSL.infoM "Foo.Bar" s)
debugM :: MonadIO m => String -> m ()
debugM s = liftIO (HSL.debugM "Foo.Bar" s)
The other hslogger priorities follow the same pattern.