Safe Haskell | None |
---|---|
Language | Haskell2010 |
This helps to setup logging to standard ouput.
Synopsis
- withUDPLogWriter :: (Lifted IO e, LogsTo IO e, MonadBaseControl IO (Eff e), HasCallStack) => (LogMessage -> Text) -> String -> String -> Eff e b -> Eff e b
- withUDPLogging :: (HasCallStack, MonadBaseControl IO (Eff e), Lifted IO e) => (LogMessage -> Text) -> String -> String -> Text -> Facility -> LogPredicate -> Eff (Logs ': (LogWriterReader IO ': e)) a -> Eff e a
Documentation
:: (Lifted IO e, LogsTo IO e, MonadBaseControl IO (Eff e), HasCallStack) | |
=> (LogMessage -> Text) |
|
-> String | Hostname or IP |
-> String | Port e.g. |
-> Eff e b | |
-> Eff e b |
Enable logging to a (remote-) host via UDP.
:: (HasCallStack, MonadBaseControl IO (Eff e), Lifted IO e) | |
=> (LogMessage -> Text) |
|
-> String | Hostname or IP |
-> String | Port e.g. |
-> 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 remote host via UDP, with some LogMessage
fields preset
as in withIoLogging
.