/** * Send the log mails * * @param array $event Event data */ public function _write($event) { //Lazy intatiation of underlying mailer if ($this->_mail === null) { $this->_mail = $this->getMail(); } parent::_write($event); }
/** * calls prent _write and and writes temp log file * * @param array $event Event data * @return void */ protected function _write($event) { if (!is_file($this->_tempfile)) { @\Pimcore\File::put($this->_tempfile, "... continued ...\r\n"); $writerFile = new \Zend_Log_Writer_Stream($this->_tempfile); $this->_tempLogger = new \Zend_Log($writerFile); } $this->_tempLogger->log($event['message'], $event['priority']); parent::_write($event); }
/** * calls prent _write and and writes temp log file * * @param array $event Event data * @return void */ protected function _write($event) { if (!is_file($this->_tempfile)) { $fh = @fopen($this->_tempfile, 'a'); @fwrite($fh, "... continued ...\r\n"); @fclose($fh); $writerFile = new Zend_Log_Writer_Stream($this->_tempfile); $this->_tempLogger = new Zend_Log($writerFile); } $this->_tempLogger->log($event['message'], $event['priority']); parent::_write($event); }