Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 729 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 729 Bytes

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!")