mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-07 13:46:38 +02:00
write method should be protected, and protected methods after public methods
This commit is contained in:
@@ -40,14 +40,6 @@ class GelfHandler extends AbstractProcessingHandler
|
|||||||
$this->publisher = $publisher;
|
$this->publisher = $publisher;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritDoc}
|
|
||||||
*/
|
|
||||||
protected function getDefaultFormatter()
|
|
||||||
{
|
|
||||||
return new GelfMessageFormatter();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
@@ -59,8 +51,16 @@ class GelfHandler extends AbstractProcessingHandler
|
|||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public function write(array $record)
|
protected function write(array $record)
|
||||||
{
|
{
|
||||||
$this->publisher->publish($record['formatted']);
|
$this->publisher->publish($record['formatted']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
protected function getDefaultFormatter()
|
||||||
|
{
|
||||||
|
return new GelfMessageFormatter();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user