دالة PHP syslog ()
مثال
فتح وإغلاق اتصال مسجل النظام:
<?php
function _log($text) {
openlog("phperrors", LOG_PID | LOG_PERROR);
syslog(LOG_ERR, $text);
closelog();
....
....
}
?>
التعريف والاستخدام
تُنشئ الدالة syslog () رسالة في سجل النظام.
بناء الجملة
syslog(priority, message)
قيمه المعامل
Parameter | Description |
---|---|
priority | Required. Specifies ... Can be one of the following options:
|
message | Required. Specifies the message to send |
تفاصيل تقنية
قيمة الإرجاع: | صواب في النجاح ، خطأ في الفشل |
---|---|
إصدار PHP: | 4.0+ |
❮ مرجع شبكة PHP