log-effect-syslog: Syslog functions for log-effect

[ bsd3, control, effect, library, logging, syslog ] [ Propose Tags ]

Utility functions for combining log-effect and syslog

[Skip to Readme]
Versions [RSS] [faq] 0.1.0, 0.2.0
Dependencies base (>=4.9 && <5.0), bytestring (==0.10.*), extensible-effects (>= && <, hsyslog (==5.*), log-effect (>=1.2.0 && <1.3.0), monad-control (==1.0.*), transformers-base [details]
License BSD-3-Clause
Author Lana Black
Maintainer lanablack@amok.cc
Category Control, Effect, Logging, Syslog
Home page https://github.com/greydot/log-effect-syslog
Source repo head: git clone https://github.com/greydot/log-effect-syslog
Uploaded by sickmind at 2019-03-02T00:23:59Z
Distributions NixOS:0.2.0
Downloads 1000 total (9 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2019-03-02 [all 1 reports]


[Index] [Quick Jump]


Maintainer's Corner

For package maintainers and hackage trustees


Readme for log-effect-syslog-0.2.0

[back to package description]


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


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