Current Location: Home> Function Categories> closelog

closelog

Close the system log link
Name:closelog
Category:Network
Programming Language:php
One-line Description:Close the connection to the system logger.

Definition and usage

closelog() function closes the connection to the system logger.

Example

Turn on and close the connection to the system logger:

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

grammar

 closelog ( )
Similar Functions
Popular Articles