| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Control.Eff.LogWriter.UnixSocket
Description
This helps to setup logging to standard ouput.
Synopsis
- withUnixSocketLogWriter :: (IoLogging e, MonadBaseControl IO (Eff e), HasCallStack) => LogMessageRenderer Text -> FilePath -> Eff e b -> Eff e b
- withUnixSocketLogging :: (HasCallStack, MonadBaseControl IO (Eff e), Lifted IO e) => LogMessageRenderer Text -> FilePath -> Text -> Facility -> LogPredicate -> Eff (Logs ': (LogWriterReader ': e)) a -> Eff e a
Documentation
withUnixSocketLogWriter Source #
Arguments
| :: (IoLogging e, MonadBaseControl IO (Eff e), HasCallStack) | |
| => LogMessageRenderer Text |
|
| -> FilePath | Path to the socket file |
| -> Eff e b | |
| -> Eff e b |
Enable logging to a (remote-) host via UnixSocket.
withUnixSocketLogging Source #
Arguments
| :: (HasCallStack, MonadBaseControl IO (Eff e), Lifted IO e) | |
| => LogMessageRenderer Text |
|
| -> FilePath | Path to the socket file |
| -> Text | The default application name to put into the |
| -> Facility | The default RFC-5424 facility to put into the |
| -> LogPredicate | The inital predicate for log messages, there are some pre-defined in Control.Eff.Log.Message |
| -> Eff (Logs ': (LogWriterReader ': e)) a | |
| -> Eff e a |
Enable logging to a unix domain socket, with some LogMessage fields preset
as in withRichLogging.