co-log-sys-0.1.1.0: Syslog implementation on top of 'co-log-core'

Safe HaskellNone
LanguageHaskell2010

Colog.Syslog.Config

Contents

Synopsis

Configuration

data SyslogConfig Source #

Configuration for Syslog

Constructors

SyslogConfig 

Fields

Instances
Eq SyslogConfig Source # 
Instance details

Defined in Colog.Syslog.Config

Read SyslogConfig Source # 
Instance details

Defined in Colog.Syslog.Config

Show SyslogConfig Source # 
Instance details

Defined in Colog.Syslog.Config

FromJSON SyslogConfig Source # 
Instance details

Defined in Colog.Syslog.Config

Methods

parseJSON :: Value -> Parser SyslogConfig

parseJSONList :: Value -> Parser [SyslogConfig]

ToJSON SyslogConfig Source # 
Instance details

Defined in Colog.Syslog.Config

Methods

toJSON :: SyslogConfig -> Value

toEncoding :: SyslogConfig -> Encoding

toJSONList :: [SyslogConfig] -> Value

toEncodingList :: [SyslogConfig] -> Encoding

Collector

data Collector Source #

Represents a receiver for Syslog messages

Constructors

AutoLocal

Automatic local syslog destination

Local String

Path to local Unix FIFO. Not supported under Windows.

Remote Family HostName PortNumber

Remote server, it's made of: Network Address Family (usually AF_INET or AF_INET6) , remote HostName (can also be localhost) and PortNumber (usually 514 for syslog)

Instances
Eq Collector Source # 
Instance details

Defined in Colog.Syslog.Config

Read Collector Source # 
Instance details

Defined in Colog.Syslog.Config

Show Collector Source # 
Instance details

Defined in Colog.Syslog.Config

FromJSON Collector Source # 
Instance details

Defined in Colog.Syslog.Config

Methods

parseJSON :: Value -> Parser Collector

parseJSONList :: Value -> Parser [Collector]

ToJSON Collector Source # 
Instance details

Defined in Colog.Syslog.Config

Methods

toJSON :: Collector -> Value

toEncoding :: Collector -> Encoding

toJSONList :: [Collector] -> Value

toEncodingList :: [Collector] -> Encoding

Re-exports

data Family #

Address families.

A constructor being present here does not mean it is supported by the operating system: see isSupportedFamily.

Instances
Eq Family 
Instance details

Defined in Network.Socket.Types

Methods

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

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

Ord Family 
Instance details

Defined in Network.Socket.Types

Read Family 
Instance details

Defined in Network.Socket.Types

Show Family 
Instance details

Defined in Network.Socket.Types

FromJSON Family 
Instance details

Defined in Colog.Syslog.Config

Methods

parseJSON :: Value -> Parser Family

parseJSONList :: Value -> Parser [Family]

ToJSON Family 
Instance details

Defined in Colog.Syslog.Config

Methods

toJSON :: Family -> Value

toEncoding :: Family -> Encoding

toJSONList :: [Family] -> Value

toEncodingList :: [Family] -> Encoding

type HostName = String #

Either a host name e.g., "haskell.org" or a numeric host address string consisting of a dotted decimal IPv4 address or an IPv6 address e.g., "192.168.0.1".

data PortNumber #

Use the Num instance (i.e. use a literal) to create a PortNumber value with the correct network-byte-ordering. You should not use the PortNum constructor. It will be removed in the next release.

>>> 1 :: PortNumber
1
>>> read "1" :: PortNumber
1
Instances
Enum PortNumber 
Instance details

Defined in Network.Socket.Types

Eq PortNumber 
Instance details

Defined in Network.Socket.Types

Integral PortNumber 
Instance details

Defined in Network.Socket.Types

Num PortNumber 
Instance details

Defined in Network.Socket.Types

Ord PortNumber 
Instance details

Defined in Network.Socket.Types

Read PortNumber 
Instance details

Defined in Network.Socket.Types

Real PortNumber 
Instance details

Defined in Network.Socket.Types

Show PortNumber 
Instance details

Defined in Network.Socket.Types

Storable PortNumber 
Instance details

Defined in Network.Socket.Types

FromJSON PortNumber 
Instance details

Defined in Colog.Syslog.Config

Methods

parseJSON :: Value -> Parser PortNumber

parseJSONList :: Value -> Parser [PortNumber]

ToJSON PortNumber 
Instance details

Defined in Colog.Syslog.Config

Methods

toJSON :: PortNumber -> Value

toEncoding :: PortNumber -> Encoding

toJSONList :: [PortNumber] -> Value

toEncodingList :: [PortNumber] -> Encoding

Orphan instances

FromJSON Family Source # 
Instance details

Methods

parseJSON :: Value -> Parser Family

parseJSONList :: Value -> Parser [Family]

FromJSON PortNumber Source # 
Instance details

Methods

parseJSON :: Value -> Parser PortNumber

parseJSONList :: Value -> Parser [PortNumber]

ToJSON Family Source # 
Instance details

Methods

toJSON :: Family -> Value

toEncoding :: Family -> Encoding

toJSONList :: [Family] -> Value

toEncodingList :: [Family] -> Encoding

ToJSON PortNumber Source # 
Instance details

Methods

toJSON :: PortNumber -> Value

toEncoding :: PortNumber -> Encoding

toJSONList :: [PortNumber] -> Value

toEncodingList :: [PortNumber] -> Encoding