Current Location: Home> Function Categories> openlog

openlog

Open the connection to the system logger
Name:openlog
Category:Network
Programming Language:php
One-line Description:Open the connection to the system logger.

Definition and usage

openlog() function opens the connection to the system logger.

Example

Turn on and close the connection to the system logger:

 <?php
function _log ( $text ) {
openlog ( "phperrors" , LOG_PID | LOG_PERROR ) ;
syslog ( LOG_ERR , $text ) ;
closelog ( ) ;
....​
....​
}
?>
Similar Functions
Popular Articles