mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-22 17:16:18 +02:00
Inline _write method
This commit is contained in:
@@ -71,14 +71,9 @@ class SyslogUdpHandler extends AbstractProcessingHandler
|
|||||||
|
|
||||||
protected function write(array $record)
|
protected function write(array $record)
|
||||||
{
|
{
|
||||||
$this->_write(array('message' => $record['formatted'], 'priority' => $record['level']));
|
$lines = $this->splitMessageIntoLines($record['formatted']);
|
||||||
}
|
|
||||||
|
|
||||||
protected function _write($event)
|
$header = $this->makeCommonSyslogHeader($this->getSeverity($record['level']));
|
||||||
{
|
|
||||||
$lines = $this->splitMessageIntoLines($event['message']);
|
|
||||||
|
|
||||||
$header = $this->makeCommonSyslogHeader($this->getSeverity($event['priority']));
|
|
||||||
|
|
||||||
foreach ($lines as $line) {
|
foreach ($lines as $line) {
|
||||||
$this->socket->write($line, $header);
|
$this->socket->write($line, $header);
|
||||||
|
Reference in New Issue
Block a user