From 4c89bb76f70a7d18733f3294753c4940d831c485 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 13 Nov 2005 13:27:16 +0000 Subject: modified how error is appended. now uses error_log. --- framework/Web/THttpResponse.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'framework') diff --git a/framework/Web/THttpResponse.php b/framework/Web/THttpResponse.php index 96859300..4dd81868 100644 --- a/framework/Web/THttpResponse.php +++ b/framework/Web/THttpResponse.php @@ -255,14 +255,17 @@ class THttpResponse extends TComponent implements IModule, ITextWriter } /** - * Writes a log message into system log. - * @param string message to be written - * @param integer priority level of this message - * @see http://us2.php.net/manual/en/function.syslog.php + * Writes a log message into error log. + * This method is simple wrapper of PHP function error_log. + * @param string The error message that should be logged + * @param integer where the error should go + * @param string The destination. Its meaning depends on the message parameter as described above + * @param string The extra headers. It's used when the message parameter is set to 1. This message type uses the same internal function as mail() does. + * @see http://us2.php.net/manual/en/function.error-log.php */ - public function appendLog($message,$priority=LOG_INFO) + public function appendLog($message,$messageType=0,$destination='',$extraHeaders='') { - syslog($priority,$message); + error_log($message,$messageType,$destination,$extraHeaders); } /** -- cgit v1.2.3