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
Instances
Eq Priority Source # | |
Read Priority Source # | |
Show Priority Source # | |
FromJSON Priority Source # | |
Defined in Colog.Syslog.Priority parseJSON :: Value -> Parser Priority parseJSONList :: Value -> Parser [Priority] | |
ToJSON Priority Source # | |
Defined in Colog.Syslog.Priority toEncoding :: Priority -> Encoding toJSONList :: [Priority] -> Value toEncodingList :: [Priority] -> Encoding | |
Buildable Priority Source # | |
Defined in Colog.Syslog.Priority |
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 # | |
FromJSON Severity Source # | |
Defined in Colog.Syslog.Priority parseJSON :: Value -> Parser Severity parseJSONList :: Value -> Parser [Severity] | |
ToJSON Severity Source # | |
Defined in Colog.Syslog.Priority toEncoding :: Severity -> Encoding toJSONList :: [Severity] -> Value toEncodingList :: [Severity] -> Encoding | |
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
Bounded Facility Source # | |
Enum Facility Source # | |
Eq Facility Source # | |
Read Facility Source # | |
Show Facility Source # | |
FromJSON Facility Source # | |
Defined in Colog.Syslog.Priority parseJSON :: Value -> Parser Facility parseJSONList :: Value -> Parser [Facility] | |
ToJSON Facility Source # | |
Defined in Colog.Syslog.Priority toEncoding :: Facility -> Encoding toJSONList :: [Facility] -> Value toEncodingList :: [Facility] -> Encoding |
facilityCode :: Facility -> Int Source #
Numerical code for a Facility
. Used to calculate the priorityValue
.