PHP syslog() Functie
Voorbeeld
Open en sluit verbinding van systeemlogger:
<?php
function _log($text) {
openlog("phperrors", LOG_PID | LOG_PERROR);
syslog(LOG_ERR, $text);
closelog();
....
....
}
?>
Definitie en gebruik
De functie syslog() genereert een systeemlogboekbericht.
Syntaxis
syslog(priority, message)
Parameterwaarden
Parameter | Description |
---|---|
priority | Required. Specifies ... Can be one of the following options:
|
message | Required. Specifies the message to send |
Technische details
Winstwaarde: | WAAR bij succes, ONWAAR bij mislukking |
---|---|
PHP-versie: | 4.0+ |
❮ PHP-netwerkreferentie