aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Graylog/Gelf.hs
diff options
context:
space:
mode:
authorAndrewRademacher <andrewrademacher@gmail.com>2016-02-27 21:54:20 -0600
committerAndrewRademacher <andrewrademacher@gmail.com>2016-02-27 21:54:20 -0600
commitb23afe7b9089b3177d9aee994464f72e52efbd2a (patch)
tree8769449a7268c8f3e9c3cfb1eb666ce6c7735189 /src/Graylog/Gelf.hs
parent640e69ef77aea530af800741e453b05e2802d188 (diff)
downloadhaskell-graylog-b23afe7b9089b3177d9aee994464f72e52efbd2a.tar.gz
haskell-graylog-b23afe7b9089b3177d9aee994464f72e52efbd2a.tar.zst
haskell-graylog-b23afe7b9089b3177d9aee994464f72e52efbd2a.zip
Successful test of un-chunked message.
Diffstat (limited to 'src/Graylog/Gelf.hs')
-rw-r--r--src/Graylog/Gelf.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Graylog/Gelf.hs b/src/Graylog/Gelf.hs
index 32b9321..cd68e05 100644
--- a/src/Graylog/Gelf.hs
+++ b/src/Graylog/Gelf.hs
@@ -59,3 +59,12 @@ instance ToJSON SyslogLevel where
59 toJSON Notice = Number 5 59 toJSON Notice = Number 5
60 toJSON Informational = Number 6 60 toJSON Informational = Number 6
61 toJSON Debug = Number 7 61 toJSON Debug = Number 7
62
63--
64
65simpleGelf
66 :: Text -- ^ Hostname
67 -> Text -- ^ Short message
68 -> GELF
69simpleGelf host short =
70 GELF Version1x1 host short Nothing Nothing Nothing Nothing Nothing