Safe Haskell | None |
---|---|
Language | Haskell2010 |
This helps to setup logging to standard ouput.
Synopsis
- withUnixSocketLogWriter :: (Lifted IO e, LogsTo IO 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 IO ': e)) a -> Eff e a
Documentation
withUnixSocketLogWriter Source #
:: (Lifted IO e, LogsTo IO 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 #
:: (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 IO ': e)) a | |
-> Eff e a |
Enable logging to a unix domain socket, with some LogMessage
fields preset
as in withIoLogging
.