summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorxue <>2005-11-13 13:27:16 +0000
committerxue <>2005-11-13 13:27:16 +0000
commit4c89bb76f70a7d18733f3294753c4940d831c485 (patch)
tree67fdd9f9ec5a2f127a7ddc7b7b78bbaf54773f69 /framework
parent24f744404ab5d148a0bfda03296baa59f7e10725 (diff)
modified how error is appended. now uses error_log.
Diffstat (limited to 'framework')
-rw-r--r--framework/Web/THttpResponse.php15
1 files changed, 9 insertions, 6 deletions
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);
}
/**