예제 #1
0
 /**
  * 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);
 }
예제 #2
0
파일: Mail.php 프로젝트: Gerhard13/pimcore
 /**
  * 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);
 }
예제 #3
0
파일: Mail.php 프로젝트: ngocanh/pimcore
 /**
  * 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);
 }