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

Safe HaskellNone
LanguageHaskell2010

Colog.Syslog.Actions

Contents

Synopsis

Syslog actions

withLogMessageSyslog :: MonadIO m => SyslogConfig -> (LogAction m Message -> IO r) -> IO r Source #

Sends a log using Syslog, implemented using continuation-passing style (like for printing on file) because it's more efficient to open the connection once at the beginning and it guarantees that the socket used will get closed.

withLogMessageSyslogGeneric :: (MonadBaseControl IO n, MonadIO m) => SyslogConfig -> (LogAction m Message -> n r) -> n r Source #

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