MIT licensed by Greg Weber & FP Complete Developers

Module documentation for 0.1.6.0

This version can be pinned in stack with:monad-logger-syslog-0.1.6.0@sha256:1cf459caea5b33f45364b6f73c9ff3128759a915788d0f8dc12033fb9da90abe,1223

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.6.0

  • Make PVP compliant.
  • Support hsyslog-4 or better.

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