HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulehsyslog-5.0.2Haskell2010

System.Posix.Syslog.Options

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.

  • 1 type
  • 1 value
  • Packagehsyslog-5.0.2
  • Exports2
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceOptions.hsc
datadata Option
#

The function openlog allows one to configure a handful of process-wide options that modify the behavior of the syslog function. These options are pid, cons, odelay, and ndelay.

Constructors

  • LogPID

    Log the pid with each message.

  • Console

    Log on the console if errors occur while sending messages.

  • DelayedOpen

    Delay all initialization until first syslog() call (default).

  • ImmediateOpen

    Initialize the syslog system immediately.

  • DontWaitForChildren

    The syslog system should not attempt to wait for child process it may have created. This option is required by applications who enable SIGCHLD themselves.

Instances7Bounded, Enum, Eq, Read, Show, Generic, …
valuefromOption :: Option -> CInt
#

Translate an Option into the system-dependent identifier that's used by the syslog(3) implementation.