PHP closelog() Function

❮ PHP Network Reference

Example

Open and close connection of system logger:

<?php
function _log($text) {
openlog("phperrors", LOG_PID | LOG_PERROR);
syslog(LOG_ERR, $text);
closelog();
....
....
}
?>


Definition and Usage

The closelog() function closes the connection of system logger.

Syntax

closelog()

Technical Details

Return Value: TRUE on success, FALSE on failure
PHP Version: 4.0+

❮ PHP Network Reference
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.