blob: 94fefbee22045e6ab429d128f81854f4fcd58f2f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# Graylog
This library provides support for sending GELF formatted messages to Graylog.
Currently the UDP chunked method is the only method supported.
```haskell
import Graylog.UDP
main :: IO ()
main = do
eglog <- openGraylog "192.168.99.100" "12201" defaultChunkSize
case eglog of
Left e -> assertFailure e
Right g -> sendLog g sample >> closeGraylog g
where
sample = simpleGelf "localhost" "hello world!"
```
|