Popularity
2.8
Stable
Activity
0.0
Stable
1
4
0

Monthly Downloads: 11
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Control     Effect     Logging     Log     Syslog    
Latest version: v0.2.0
Add another 'log' Package

README

log-effect-syslog

This package contains a set of utility functions that provide ability to log to syslog using extensible-effects and log-effect.

Example

import Control.Eff
import Control.Eff.Lift
import Control.Eff.Log
import Control.Eff.Log.Syslog

someComp :: ( [LogM IO SyslogMsg] <:: r
            , Lifted IO r
            ) => Eff r ()
someComp = do logInfo "Doing something"
              logDebug "Doing something else"
              {- ... -}
              logInfo "Ok, we're done"

main :: IO ()
main = runLift $ runSyslog "MyProgram" [LogPID] User
               $ someComp