'; } if ($logno <= LOG_LEVEL_WRITE) { // TODO: David: Write $errorString to file } if ($logno <= LOG_LEVEL_MAIL) { // TODO: David: Mail $errorString to administrator } } } $LOG_HANDLER = new LogHandler(); /* * Function: trigger_log * Parameters: int $logno, string $logstr, string $logfile, int $logline * Function: Handling with log entries, forwarding them to our $LOG_HANDLER object. */ function trigger_log($logno, $logstr, $logfile, $logline) { global $LOG_HANDLER; $LOG_HANDLER->logEntry($logno, $logstr, $logfile, $logline); } ?>