From d9a5d441ca9b5ae766311702557bf9f1ff0255b1 Mon Sep 17 00:00:00 2001 From: AndrewRademacher Date: Sun, 28 Feb 2016 14:38:16 -0600 Subject: Added readme, license, and light commenting. --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 README.md (limited to 'README.md') diff --git a/README.md b/README.md new file mode 100644 index 0000000..94fefbe --- /dev/null +++ b/README.md @@ -0,0 +1,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!" +``` -- cgit v1.2.3