hsyslog-5.0.2: FFI interface to syslog(3) from POSIX.1-2001

Maintainer | simons@cryp.to
Stability | provisional
Portability | POSIX
Safe Haskell | Safe-Inferred
Language | Haskell2010

System.Posix.Syslog.Facility

Description

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.

Synopsis

- data Facility
  - = Kernel
  - | User
  - | Mail
  - | News
  - | UUCP
  - | Daemon
  - | Auth
  - | Cron
  - | LPR
  - | Local0
  - | Local1
  - | Local2
  - | Local3
  - | Local4
  - | Local5
  - | Local6
  - | Local7
- fromFacility :: Facility -> CInt

# Documentation

data Facility Source #

Syslog distinguishes various system facilities. Most applications should log in `USER`.

Constructors

Kernel | kernel messages
User | user-level messages (default unless set otherwise)
Mail | mail system
News | network news subsystem
UUCP | UUCP subsystem
Daemon | system daemons
Auth | security and authorization messages
Cron | clock daemon
LPR | line printer subsystem
Local0 | reserved for local use
Local1 | reserved for local use
Local2 | reserved for local use
Local3 | reserved for local use
Local4 | reserved for local use
Local5 | reserved for local use
Local6 | reserved for local use
Local7 | reserved for local use

#### Instances

Instances details

Bounded Facility Source # |
Instance details Defined in System.Posix.Syslog.Facility Methods minBound :: Facility Source # maxBound :: Facility Source #
Enum Facility Source # |

Instance details

Defined in System.Posix.Syslog.Facility

Methods

succ :: Facility -> Facility Source #

pred :: Facility -> Facility Source #

toEnum :: Int -> Facility Source #

fromEnum :: Facility -> Int Source #

enumFrom :: Facility -> [Facility] Source #

enumFromThen :: Facility -> Facility -> [Facility] Source #

enumFromTo :: Facility -> Facility -> [Facility] Source #

enumFromThenTo :: Facility -> Facility -> Facility -> [Facility] Source #

Generic Facility Source # |
Instance details Defined in System.Posix.Syslog.Facility Associated Types type Rep Facility :: Type -> Type Source # Methods from :: Facility -> Rep Facility x Source # to :: Rep Facility x -> Facility Source #
Read Facility Source # |
Instance details Defined in System.Posix.Syslog.Facility Methods readsPrec :: Int -> ReadS Facility Source # readList :: ReadS [Facility] Source # readPrec :: ReadPrec Facility Source # readListPrec :: ReadPrec [Facility] Source #
Show Facility Source # |
Instance details Defined in System.Posix.Syslog.Facility Methods showsPrec :: Int -> Facility -> ShowS Source # show :: Facility -> String Source # showList :: [Facility] -> ShowS Source #
Eq Facility Source # |
Instance details Defined in System.Posix.Syslog.Facility Methods (==) :: Facility -> Facility -> Bool Source # (/=) :: Facility -> Facility -> Bool Source #
type Rep Facility Source # |

Instance details

Defined in System.Posix.Syslog.Facility

type Rep Facility = D1 ('MetaData "Facility" "System.Posix.Syslog.Facility" "hsyslog-5.0.2-5tJsoTgruGSFuCr1b3O880" 'False) ((((C1 ('MetaCons "Kernel" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "User" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Mail" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "News" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "UUCP" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Daemon" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Auth" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Cron" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: (((C1 ('MetaCons "LPR" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Local0" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Local1" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Local2" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "Local3" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Local4" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Local5" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Local6" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Local7" 'PrefixI 'False) (U1 :: Type -> Type))))))

fromFacility :: Facility -> CInt Source #

Translate a `Facility` into the system-dependent identifier that's used by the `syslog(3)` implementation.