/** * close a file logs * * @return void */ public function close() { $this->debug(__METHOD__); if ($this->_fp) { $closed = fclose($this->_fp); if ($closed) { $this->_fp = null; self::$_instance = null; } else { echo 'Error closing the log file'; } } }