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 [faq] 0.1.0, 0.2.0
Dependencies base (>=4.9 && <5.0), bytestring (==0.10.*), extensible-effects (>=5.0.0.0 && <5.1.0.0), 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 Sat Mar 2 00:23:59 UTC 2019
Distributions NixOS:0.2.0
Downloads 325 total (25 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2019-03-02 [all 1 reports]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for log-effect-syslog-0.2.0

[back to package description]

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