HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulehsyslog-5.0.2Haskell2010

System.Posix.Syslog.Priority

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.

Contents
  1. Message Priorities
Synopsis
  • Packagehsyslog-5.0.2
  • Exports2
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourcePriority.hsc

Message Priorities

datadata Priority

Log messages are prioritized with one of the following levels:

Example1 expression
[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:

Example3 expressions
Emergency < DebugTrueminimum [minBound..maxBound] :: PriorityEmergencymaximum [minBound..maxBound] :: PriorityDebug

Constructors

Instances8Bounded, Enum, Eq, Ord, Read, Show, …