openlog
Open the connection to the system logger
openlog()
function opens the connection to the system logger.
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 ( ) ; .... .... } ?>