graylog-0.1.0.1: Support for graylog output.

Safe HaskellNone
LanguageHaskell2010

Graylog.UDP

Description

UDP Chunked support for sending messages to graylog.

Synopsis

Documentation

sendLog :: Graylog -> GELF -> IO () #

data Graylog #

Handle for a socket connected to Graylog. In some cases this socket is UDP and will not have a maintained session.

type ChunkSize = Word #

The maximum size of each datagram when using UDP transit methods.

openGraylog #

Arguments

:: HostName

The host on which graylog is running.

-> ServiceName

The port on which graylog is running.

-> ChunkSize

The maximum size of each UDP datagram.

-> IO (Either String Graylog)