]> git.immae.eu Git - github/fretlink/haskell-graylog.git/blob - README.md
Merge pull request #3 from antoine-fl/bump_lts
[github/fretlink/haskell-graylog.git] / README.md
1 # Graylog
2 This library provides support for sending GELF formatted messages to Graylog.
3 Currently the UDP chunked method is the only method supported.
4
5 ```haskell
6 import Graylog.UDP
7
8 main :: IO ()
9 main = do
10 eglog <- openGraylog "192.168.99.100" "12201" defaultChunkSize
11 case eglog of
12 Left e -> assertFailure e
13 Right g -> sendLog g sample >> closeGraylog g
14 where
15 sample = simpleGelf "localhost" "hello world!"
16 ```