diff --git a/src/Monolog/Handler/GelfHandler.php b/src/Monolog/Handler/GelfHandler.php index 2eec8fc1..7346029a 100644 --- a/src/Monolog/Handler/GelfHandler.php +++ b/src/Monolog/Handler/GelfHandler.php @@ -40,14 +40,6 @@ class GelfHandler extends AbstractProcessingHandler $this->publisher = $publisher; } - /** - * {@inheritDoc} - */ - protected function getDefaultFormatter() - { - return new GelfMessageFormatter(); - } - /** * {@inheritdoc} */ @@ -59,8 +51,16 @@ class GelfHandler extends AbstractProcessingHandler /** * {@inheritdoc} */ - public function write(array $record) + protected function write(array $record) { $this->publisher->publish($record['formatted']); } + + /** + * {@inheritDoc} + */ + protected function getDefaultFormatter() + { + return new GelfMessageFormatter(); + } }