| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Control.Eff.LogWriter.UDP
Description
This helps to setup logging to standard ouput.
Synopsis
- withUDPLogWriter :: (IoLogging 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 ': e)) a -> Eff e a
Documentation
Arguments
| :: (IoLogging 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.
Arguments
| :: (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 ': e)) a | |
| -> Eff e a |
Enable logging to a remote host via UDP, with some LogMessage fields preset
as in withRichLogging.