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 

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

ToJSON Severity Source # 
Instance details

Defined in Colog.Syslog.Priority

FromJSON Severity Source # 
Instance details

Defined in Colog.Syslog.Priority

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 

facilityCode :: Facility -> Int Source #

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