public function write(array $record) { foreach ($this->users as $user) { $this->user = $user; parent::write($record); $this->closeSocket(); } $this->user = null; }
public function write(array $record) { parent::write($record); $this->closeSocket(); }
/** * {@inheritdoc} * * @param array $record */ protected function write(array $record) { parent::write($record); $res = $this->getResource(); if (is_resource($res)) { @fread($res, 2048); } $this->closeSocket(); }
/** * {@inheritdoc} * * @param array $record */ protected function write(array $record) { try { parent::write($record); $this->closeSocket(); } catch (\Exception $e) { // socket creation failed. Cannot connect to hipchat API. } }