MIT licensed by Greg Weber & FP Complete Developers

Module documentation for 0.1.5.0

This version can be pinned in stack with:monad-logger-syslog-0.1.5.0@sha256:e1243f18761f420aaf396a26f797d9fa51e679ab6c80965d1080e0774b15a23c,1054

Monad Logger for Syslog

TravisCI Hackage

Install

cabal install monad-logger-syslog

Usage (example)

Default to syslog user facility with name hslogger

import Control.Monad.Logger ( logDebugN  )
import Control.Monad.Logger.Syslog ( runSyslogLoggingT )

main :: IO ()
main = runSyslogLoggingT (logDebugN "HELLO!")

Log under Local1 facility with name mylogger

import Control.Monad.Logger ( logDebugN  )
import Control.Monad.Logger.Syslog ( runCustomSyslogLoggingT )

main :: IO ()
main = runCustomSyslogLoggingT "mylogger" Local1 (logDebugN "HELLO!")

Changes

0.1.5.0

  • Allow custom logger name and facility.

0.1.4.0

  • Support for hsyslog-5 #6

0.1.1.1

  • Fix Haddock generation
comments powered byDisqus