co-log-sys-0.1.1.0: Syslog implementation on top of 'co-log-core'

Safe HaskellNone
LanguageHaskell2010

Colog.Syslog.Handler

Synopsis

Documentation

data SyslogHandler Source #

An Handler for Syslog connections

withSyslog :: SyslogConfig -> (SyslogHandler -> IO r) -> IO r Source #

Uses continuation-passing style for Syslog, similar to withFile with Handles

withSyslogGeneric :: MonadBaseControl IO m => SyslogConfig -> (SyslogHandler -> m r) -> m r Source #

Like withSyslog, but without the IO restriction on the continuation function. NOTE: this allows more flexibility, but may also be slower