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.
Synopsis
- data Option
- fromOption :: Option -> CInt
Documentation
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
.
LogPID | Log the pid with each message. |
Console | Log on the console if errors occur while sending messages. |
DelayedOpen | Delay all initialization until first |
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 |
Instances
Bounded Option Source # | |
Enum Option Source # | |
Defined in System.Posix.Syslog.Options | |
Eq Option Source # | |
Read Option Source # | |
Show Option Source # | |
Generic Option Source # | |
type Rep Option Source # | |
Defined in System.Posix.Syslog.Options type Rep Option = D1 (MetaData "Option" "System.Posix.Syslog.Options" "hsyslog-5.0.2-4YPEwpeEGKZ6PP1UUUwS4g" False) ((C1 (MetaCons "LogPID" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Console" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "DelayedOpen" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "ImmediateOpen" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "DontWaitForChildren" PrefixI False) (U1 :: Type -> Type)))) |