syslog
Generate system log messages
syslog() function generates a system log message.
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 ( ) ;
....
....
}
?>