Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- withLogMessageSyslog :: MonadIO m => SyslogConfig -> (LogAction m Message -> IO r) -> IO r
- withLogMessageSyslogGeneric :: (MonadBaseControl IO n, MonadIO m) => SyslogConfig -> (LogAction m Message -> n r) -> n r
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