PHP sistem günlüğü() İşlevi
Örnek
Sistem kaydedicinin bağlantısını açın ve kapatın:
<?php
function _log($text) {
openlog("phperrors", LOG_PID | LOG_PERROR);
syslog(LOG_ERR, $text);
closelog();
....
....
}
?>
Tanım ve Kullanım
syslog() işlevi, bir sistem günlüğü mesajı oluşturur.
Sözdizimi
syslog(priority, message)
Parametre Değerleri
Parameter | Description |
---|---|
priority | Required. Specifies ... Can be one of the following options:
|
message | Required. Specifies the message to send |
Teknik detaylar
Geri dönüş değeri: | Başarıda DOĞRU, başarısızlıkta YANLIŞ |
---|---|
PHP Sürümü: | 4.0+ |
❮ PHP Ağ Referansı