Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data SyslogConfig = SyslogConfig {}
- data Collector
- data Family
- = AF_UNSPEC
- | AF_UNIX
- | AF_INET
- | AF_INET6
- | AF_IMPLINK
- | AF_PUP
- | AF_CHAOS
- | AF_NS
- | AF_NBS
- | AF_ECMA
- | AF_DATAKIT
- | AF_CCITT
- | AF_SNA
- | AF_DECnet
- | AF_DLI
- | AF_LAT
- | AF_HYLINK
- | AF_APPLETALK
- | AF_ROUTE
- | AF_NETBIOS
- | AF_NIT
- | AF_802
- | AF_ISO
- | AF_OSI
- | AF_NETMAN
- | AF_X25
- | AF_AX25
- | AF_OSINET
- | AF_GOSSIP
- | AF_IPX
- | Pseudo_AF_XTP
- | AF_CTF
- | AF_WAN
- | AF_SDL
- | AF_NETWARE
- | AF_NDD
- | AF_INTF
- | AF_COIP
- | AF_CNT
- | Pseudo_AF_RTIP
- | Pseudo_AF_PIP
- | AF_SIP
- | AF_ISDN
- | Pseudo_AF_KEY
- | AF_NATM
- | AF_ARP
- | Pseudo_AF_HDRCMPLT
- | AF_ENCAP
- | AF_LINK
- | AF_RAW
- | AF_RIF
- | AF_NETROM
- | AF_BRIDGE
- | AF_ATMPVC
- | AF_ROSE
- | AF_NETBEUI
- | AF_SECURITY
- | AF_PACKET
- | AF_ASH
- | AF_ECONET
- | AF_ATMSVC
- | AF_IRDA
- | AF_PPPOX
- | AF_WANPIPE
- | AF_BLUETOOTH
- | AF_CAN
- type HostName = String
- data PortNumber
Configuration
data SyslogConfig Source #
Configuration for Syslog
Instances
Eq SyslogConfig Source # | |
Defined in Colog.Syslog.Config (==) :: SyslogConfig -> SyslogConfig -> Bool # (/=) :: SyslogConfig -> SyslogConfig -> Bool # | |
Read SyslogConfig Source # | |
Defined in Colog.Syslog.Config readsPrec :: Int -> ReadS SyslogConfig # readList :: ReadS [SyslogConfig] # | |
Show SyslogConfig Source # | |
Defined in Colog.Syslog.Config showsPrec :: Int -> SyslogConfig -> ShowS # show :: SyslogConfig -> String # showList :: [SyslogConfig] -> ShowS # | |
FromJSON SyslogConfig Source # | |
Defined in Colog.Syslog.Config parseJSON :: Value -> Parser SyslogConfig parseJSONList :: Value -> Parser [SyslogConfig] | |
ToJSON SyslogConfig Source # | |
Defined in Colog.Syslog.Config toJSON :: SyslogConfig -> Value toEncoding :: SyslogConfig -> Encoding toJSONList :: [SyslogConfig] -> Value toEncodingList :: [SyslogConfig] -> Encoding |
Collector
Represents a receiver for Syslog messages
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 |
Instances
Eq Collector Source # | |
Read Collector Source # | |
Show Collector Source # | |
FromJSON Collector Source # | |
Defined in Colog.Syslog.Config parseJSON :: Value -> Parser Collector parseJSONList :: Value -> Parser [Collector] | |
ToJSON Collector Source # | |
Defined in Colog.Syslog.Config toEncoding :: Collector -> Encoding toJSONList :: [Collector] -> Value toEncodingList :: [Collector] -> Encoding |
Re-exports
Address families.
A constructor being present here does not mean it is supported by the
operating system: see isSupportedFamily
.
Instances
Eq Family | |
Ord Family | |
Read Family | |
Show Family | |
FromJSON Family | |
Defined in Colog.Syslog.Config parseJSON :: Value -> Parser Family parseJSONList :: Value -> Parser [Family] | |
ToJSON Family | |
Defined in Colog.Syslog.Config toEncoding :: Family -> Encoding toJSONList :: [Family] -> Value toEncodingList :: [Family] -> Encoding |
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
Orphan instances
FromJSON Family Source # | |
parseJSON :: Value -> Parser Family parseJSONList :: Value -> Parser [Family] | |
FromJSON PortNumber Source # | |
parseJSON :: Value -> Parser PortNumber parseJSONList :: Value -> Parser [PortNumber] | |
ToJSON Family Source # | |
toEncoding :: Family -> Encoding toJSONList :: [Family] -> Value toEncodingList :: [Family] -> Encoding | |
ToJSON PortNumber Source # | |
toJSON :: PortNumber -> Value toEncoding :: PortNumber -> Encoding toJSONList :: [PortNumber] -> Value toEncodingList :: [PortNumber] -> Encoding |