Maintainer | simons@cryp.to |
---|---|
Stability | provisional |
Portability | POSIX |
Safe Haskell | Safe |
Language | Haskell2010 |
FFI bindings to syslog(3)
from
POSIX.1-2008.
This module is intended for purposes of low-level implementation. Users of
this library should prefer safer and more convenient API provided by
System.Posix.Syslog.
Message Priorities
Log messages are prioritized with one of the following levels:
>>>
[minBound..maxBound] :: [Priority]
[Emergency,Alert,Critical,Error,Warning,Notice,Info,Debug]
The Ord
instance for Priority
considers the more urgent level lower than
less urgent ones:
>>>
Emergency < Debug
True>>>
minimum [minBound..maxBound] :: Priority
Emergency>>>
maximum [minBound..maxBound] :: Priority
Debug
Emergency | the 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 |
Debug | debug-level messages |
Instances
Bounded Priority Source # | |
Enum Priority Source # | |
Defined in System.Posix.Syslog.Priority | |
Eq Priority Source # | |
Ord Priority Source # | |
Defined in System.Posix.Syslog.Priority | |
Read Priority Source # | |
Show Priority Source # | |
Generic Priority Source # | |
type Rep Priority Source # | |
Defined in System.Posix.Syslog.Priority type Rep Priority = D1 (MetaData "Priority" "System.Posix.Syslog.Priority" "hsyslog-5.0.2-4YPEwpeEGKZ6PP1UUUwS4g" False) (((C1 (MetaCons "Emergency" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Alert" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "Critical" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Error" PrefixI False) (U1 :: Type -> Type))) :+: ((C1 (MetaCons "Warning" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Notice" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "Info" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Debug" PrefixI False) (U1 :: Type -> Type)))) |