Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data SyslogHandler
- mkSyslogHandler :: SyslogConfig -> IO SyslogHandler
- withSyslog :: SyslogConfig -> (SyslogHandler -> IO r) -> IO r
- withSyslogGeneric :: MonadBaseControl IO m => SyslogConfig -> (SyslogHandler -> m r) -> m r
- logSyslogMessage :: MonadIO m => SyslogHandler -> LogAction m Message
Documentation
data SyslogHandler Source #
An Handler for Syslog connections
mkSyslogHandler :: SyslogConfig -> IO SyslogHandler Source #
Creates a SyslogHandler
from a SyslogConfig
withSyslog :: SyslogConfig -> (SyslogHandler -> IO r) -> IO r Source #
Uses continuation-passing style for Syslog, similar to withFile
with Handle
s
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
logSyslogMessage :: MonadIO m => SyslogHandler -> LogAction m Message Source #
Uses a SyslogHandler
to make a LogAction
that logs Message
s