"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "vendor/monolog/monolog/src/Monolog/Handler/GelfHandler.php" between
glpi-9.3.3.tgz and glpi-9.4.0.tgz

About: GLPI is an IT and asset management software (Information Resource Manager).

GelfHandler.php  (glpi-9.3.3.tgz):GelfHandler.php  (glpi-9.4.0.tgz)
skipping to change at line 53 skipping to change at line 53
if (!$publisher instanceof Publisher && !$publisher instanceof IMessageP ublisher && !$publisher instanceof PublisherInterface) { if (!$publisher instanceof Publisher && !$publisher instanceof IMessageP ublisher && !$publisher instanceof PublisherInterface) {
throw new InvalidArgumentException('Invalid publisher, expected a Ge lf\Publisher, Gelf\IMessagePublisher or Gelf\PublisherInterface instance'); throw new InvalidArgumentException('Invalid publisher, expected a Ge lf\Publisher, Gelf\IMessagePublisher or Gelf\PublisherInterface instance');
} }
$this->publisher = $publisher; $this->publisher = $publisher;
} }
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function close()
{
$this->publisher = null;
}
/**
* {@inheritdoc}
*/
protected function write(array $record) protected function write(array $record)
{ {
$this->publisher->publish($record['formatted']); $this->publisher->publish($record['formatted']);
} }
/** /**
* {@inheritDoc} * {@inheritDoc}
*/ */
protected function getDefaultFormatter() protected function getDefaultFormatter()
{ {
 End of changes. 1 change blocks. 
8 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)