graylog-0.1.0.1: Support for graylog output.

Safe HaskellNone
LanguageHaskell2010

Graylog.Gelf

Description

Default formatting for Graylog messages, see http://docs.graylog.org/en/latest/pages/gelf.html

Documentation

data GELF #

Instances

Show GELF # 

Methods

showsPrec :: Int -> GELF -> ShowS #

show :: GELF -> String #

showList :: [GELF] -> ShowS #

Generic GELF # 

Associated Types

type Rep GELF :: * -> * #

Methods

from :: GELF -> Rep GELF x #

to :: Rep GELF x -> GELF #

ToJSON GELF # 
type Rep GELF # 

data Version #

Constructors

Version1x1 

Instances

Eq Version # 

Methods

(==) :: Version -> Version -> Bool #

(/=) :: Version -> Version -> Bool #

Show Version # 
Generic Version # 

Associated Types

type Rep Version :: * -> * #

Methods

from :: Version -> Rep Version x #

to :: Rep Version x -> Version #

ToJSON Version # 
type Rep Version # 
type Rep Version = D1 * (MetaData "Version" "Graylog.Gelf" "graylog-0.1.0.1-1t1jx11qmYgETGR1XG6cyA" False) (C1 * (MetaCons "Version1x1" PrefixI False) (U1 *))

data SyslogLevel #

Instances

Eq SyslogLevel # 
Ord SyslogLevel # 
Show SyslogLevel # 
Generic SyslogLevel # 

Associated Types

type Rep SyslogLevel :: * -> * #

ToJSON SyslogLevel # 
type Rep SyslogLevel # 
type Rep SyslogLevel = D1 * (MetaData "SyslogLevel" "Graylog.Gelf" "graylog-0.1.0.1-1t1jx11qmYgETGR1XG6cyA" False) ((:+:) * ((:+:) * ((:+:) * (C1 * (MetaCons "Emergency" PrefixI False) (U1 *)) (C1 * (MetaCons "Alert" PrefixI False) (U1 *))) ((:+:) * (C1 * (MetaCons "Critical" PrefixI False) (U1 *)) (C1 * (MetaCons "Error" PrefixI False) (U1 *)))) ((:+:) * ((:+:) * (C1 * (MetaCons "Warning" PrefixI False) (U1 *)) (C1 * (MetaCons "Notice" PrefixI False) (U1 *))) ((:+:) * (C1 * (MetaCons "Informational" PrefixI False) (U1 *)) (C1 * (MetaCons "Debug" PrefixI False) (U1 *)))))

simpleGelf #

Arguments

:: Text

Hostname

-> Text

Short message

-> GELF