1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-07 05:36:45 +02:00

write method should be protected, and protected methods after public methods

This commit is contained in:
Matt Lehner
2012-04-20 13:24:28 -04:00
parent 07338af323
commit a497704d94

View File

@@ -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();
}
} }