openlog
(PHP 4, PHP 5, PHP 7, PHP 8)
openlog — Open connection to system logger
Description
The use of openlog() is optional. It
will automatically be called by syslog() if
necessary, in which case prefix will default
to the empty string.
Parameters
prefix
-
The string prefix is added to each message.
flags
-
Bitmask of the following constants:
facility
-
The facility argument is used to specify
what type of program is logging the message.
This lets the configuration file specify that messages from different
facilities will be handled differently.
Must be one of the following constants:
Note:
This parameter is ignored on Windows.
Return Values
Always returns true.