mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-07 21:56:31 +02:00
Remove unnecessary getDefaultFormatter and handleBatch methods.
This commit is contained in:
@@ -44,17 +44,6 @@ class LogEntriesHandler extends SocketHandler
|
|||||||
$this->logToken = $token;
|
$this->logToken = $token;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function handleBatch(array $records)
|
|
||||||
{
|
|
||||||
foreach ($records as $record) {
|
|
||||||
$record['formatted'] = $this->getFormatter()->format($record);
|
|
||||||
parent::write($record);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*
|
*
|
||||||
@@ -66,11 +55,4 @@ class LogEntriesHandler extends SocketHandler
|
|||||||
return $this->logToken . ' ' . $record['formatted'];
|
return $this->logToken . ' ' . $record['formatted'];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritDoc}
|
|
||||||
*/
|
|
||||||
protected function getDefaultFormatter()
|
|
||||||
{
|
|
||||||
return new LineFormatter();
|
|
||||||
}
|
|
||||||
}
|
}
|
Reference in New Issue
Block a user