(PHP 4, PHP 5, PHP 7, PHP 8)

closelogClose connection to system logger


closelog(): bool

closelog() closes the descriptor being used to write to the system logger. The use of closelog() is optional.


This function has no parameters.

Return Values

Returns true on success or false on failure.

See Also

  • syslog() - Generate a system log message
  • openlog() - Open connection to system logger