Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Priority = Priority Facility Severity
- priorityValue :: Priority -> Int
- data Severity
- severityCode :: Severity -> Int
- data Facility
- facilityCode :: Facility -> Int
Priority
Represents the priority of a syslog message, as per RFC5424
Severity
Represents the severity of a syslog message, as per RFC5424
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 # | |
Enum Severity Source # | |
Eq Severity Source # | |
Ord Severity Source # |
|
Defined in Colog.Syslog.Priority | |
Read Severity Source # | |
Show Severity Source # | |
ToJSON Severity Source # | |
Defined in Colog.Syslog.Priority | |
FromJSON Severity Source # | |
Buildable Severity Source # | |
Defined in Colog.Syslog.Priority |
severityCode :: Severity -> Int Source #
Numerical code for a Severity
. Used to calculate the priorityValue
.
Facility
Represents the machine process that created a syslog event, as per RFC5424
Kernel | Kernel messages |
User | User-level messages. Unless something else applies, this should be your first choice. |
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
facilityCode :: Facility -> Int Source #
Numerical code for a Facility
. Used to calculate the priorityValue
.