openlog

(PHP3 , PHP4 )

openlog -- Open connection to system logger

Description

int openlog (string ident, int option, int facility)

Openlog() opens a connection to the system logger for a program. The string ident is added to each message. Values for option and facility are given in the next section. The use of openlog() is optional; It will automatically be called by syslog() if necessary, in which case ident will default to false.

See also syslog() and closelog().