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

Safe HaskellNone
LanguageHaskell2010

Colog.Syslog.Priority

Contents

Synopsis

Priority

data Priority Source #

Represents the priority of a syslog message, as per RFC5424

Constructors

Priority Facility Severity 
Instances
Eq Priority Source # 
Instance details

Defined in Colog.Syslog.Priority

Read Priority Source # 
Instance details

Defined in Colog.Syslog.Priority

Show Priority Source # 
Instance details

Defined in Colog.Syslog.Priority

FromJSON Priority Source # 
Instance details

Defined in Colog.Syslog.Priority

Methods

parseJSON :: Value -> Parser Priority

parseJSONList :: Value -> Parser [Priority]

ToJSON Priority Source # 
Instance details

Defined in Colog.Syslog.Priority

Methods

toJSON :: Priority -> Value

toEncoding :: Priority -> Encoding

toJSONList :: [Priority] -> Value

toEncodingList :: [Priority] -> Encoding

Buildable Priority Source # 
Instance details

Defined in Colog.Syslog.Priority

Methods

build :: Priority -> Builder

priorityValue :: Priority -> Int Source #

Calculate the Priority value of a message, as per RFC5424

Severity

data Severity Source #

Represents the severity of a syslog message, as per RFC5424

Constructors

Emergency

System is unusable

Alert

Action must be taken immediately

Critical

Critical conditions

Error

Error conditions

Warning

Warning conditions

Notice

Normal but significant condition

Info

Informational messages

Debug

Debug-level messages

Instances
Bounded Severity Source # 
Instance details

Defined in Colog.Syslog.Priority

Enum Severity Source # 
Instance details

Defined in Colog.Syslog.Priority

Eq Severity Source # 
Instance details

Defined in Colog.Syslog.Priority

Ord Severity Source #

Ord instance uses the Enum instance reversed, so Severities can be ordered correctly and Enum can give us the right severityCode

Instance details

Defined in Colog.Syslog.Priority

Read Severity Source # 
Instance details

Defined in Colog.Syslog.Priority

Show Severity Source # 
Instance details

Defined in Colog.Syslog.Priority

FromJSON Severity Source # 
Instance details

Defined in Colog.Syslog.Priority

Methods

parseJSON :: Value -> Parser Severity

parseJSONList :: Value -> Parser [Severity]

ToJSON Severity Source # 
Instance details

Defined in Colog.Syslog.Priority

Methods

toJSON :: Severity -> Value

toEncoding :: Severity -> Encoding

toJSONList :: [Severity] -> Value

toEncodingList :: [Severity] -> Encoding

Buildable Severity Source # 
Instance details

Defined in Colog.Syslog.Priority

Methods

build :: Severity -> Builder

severityCode :: Severity -> Int Source #

Numerical code for a Severity. Used to calculate the priorityValue.

Facility

data Facility Source #

Represents the machine process that created a syslog event, as per RFC5424

Constructors

Kernel

Kernel messages

User

User-level messages. Unless something else applies, this should be your first choice.

Mail

Mail system

Daemon

System daemons

Auth

Security/Authorization messages

Syslog

Messages generated internally by syslogd

Lpr

Line printer subsystem

News

Network news subsystem

Uucp

UUCP subsystem

Cron

Cron messages

AuthPriv

Private Security/Authorization messages

Ftp

FTP daemon

Ntp

NTP subsystem

LogAudit

Log audit

LogAlert

Log alert

Clock

Clock daemon

Local0

LOCAL 0 to 7 are not used by UNIX and can be used freely

Local1 
Local2 
Local3 
Local4 
Local5 
Local6 
Local7 
Instances
Bounded Facility Source # 
Instance details

Defined in Colog.Syslog.Priority

Enum Facility Source # 
Instance details

Defined in Colog.Syslog.Priority

Eq Facility Source # 
Instance details

Defined in Colog.Syslog.Priority

Read Facility Source # 
Instance details

Defined in Colog.Syslog.Priority

Show Facility Source # 
Instance details

Defined in Colog.Syslog.Priority

FromJSON Facility Source # 
Instance details

Defined in Colog.Syslog.Priority

Methods

parseJSON :: Value -> Parser Facility

parseJSONList :: Value -> Parser [Facility]

ToJSON Facility Source # 
Instance details

Defined in Colog.Syslog.Priority

Methods

toJSON :: Facility -> Value

toEncoding :: Facility -> Encoding

toJSONList :: [Facility] -> Value

toEncodingList :: [Facility] -> Encoding

facilityCode :: Facility -> Int Source #

Numerical code for a Facility. Used to calculate the priorityValue.