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

[ bsd3, control, effect, library, logging, syslog ] [ Propose Tags ] [ Report a vulnerability ]

Utility functions for combining log-effect and syslog


[Skip to Readme]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0, 0.2.0
Dependencies base (>=4.9 && <5.0), bytestring (>=0.10 && <0.11), extensible-effects (>=5.0.0.0 && <5.1.0.0), hsyslog (>=5 && <6), log-effect (>=1.2.0 && <1.3.0), monad-control (>=1.0 && <1.1), 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
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 1255 total (10 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2019-03-02 [all 1 reports]

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