1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-23 01:26:11 +02:00
This commit is contained in:
Jordi Boggiano
2016-03-01 18:00:33 +00:00
parent fa96f6aa8f
commit 127d7720c9
5 changed files with 64 additions and 60 deletions

View File

@@ -83,6 +83,7 @@ class AmqpHandler extends AbstractProcessingHandler
{
if ($this->exchange instanceof AMQPExchange) {
parent::handleBatch($records);
return;
}
@@ -107,7 +108,7 @@ class AmqpHandler extends AbstractProcessingHandler
/**
* Gets the routing key for the AMQP exchange
*
* @param array $record
* @param array $record
* @return string
*/
private function getRoutingKey(array $record)
@@ -123,7 +124,7 @@ class AmqpHandler extends AbstractProcessingHandler
}
/**
* @param string $data
* @param string $data
* @return AMQPMessage
*/
private function createAmqpMessage($data)

View File

@@ -65,7 +65,7 @@ class BrowserConsoleHandler extends AbstractProcessingHandler
if (count(self::$records)) {
if ($format === 'html') {
self::writeOutput('<script>' , self::generateScript() , '</script>');
self::writeOutput('<script>', self::generateScript(), '</script>');
} elseif ($format === 'js') {
self::writeOutput(self::generateScript());
}

View File

@@ -74,6 +74,7 @@ class HandlerWrapper implements HandlerInterface
public function pushProcessor($callback)
{
$this->handler->pushProcessor($callback);
return $this;
}
@@ -91,6 +92,7 @@ class HandlerWrapper implements HandlerInterface
public function setFormatter(FormatterInterface $formatter)
{
$this->handler->setFormatter($formatter);
return $this;
}
@@ -101,4 +103,4 @@ class HandlerWrapper implements HandlerInterface
{
return $this->handler->getFormatter();
}
}
}

View File

@@ -18,50 +18,50 @@ namespace Monolog\Handler;
*
* @author Jordi Boggiano <j.boggiano@seld.be>
*
* @method boolean hasEmergency($record)
* @method boolean hasAlert($record)
* @method boolean hasCritical($record)
* @method boolean hasError($record)
* @method boolean hasWarning($record)
* @method boolean hasNotice($record)
* @method boolean hasInfo($record)
* @method boolean hasDebug($record)
* @method bool hasEmergency($record)
* @method bool hasAlert($record)
* @method bool hasCritical($record)
* @method bool hasError($record)
* @method bool hasWarning($record)
* @method bool hasNotice($record)
* @method bool hasInfo($record)
* @method bool hasDebug($record)
*
* @method boolean hasEmergencyRecords()
* @method boolean hasAlertRecords()
* @method boolean hasCriticalRecords()
* @method boolean hasErrorRecords()
* @method boolean hasWarningRecords()
* @method boolean hasNoticeRecords()
* @method boolean hasInfoRecords()
* @method boolean hasDebugRecords()
* @method bool hasEmergencyRecords()
* @method bool hasAlertRecords()
* @method bool hasCriticalRecords()
* @method bool hasErrorRecords()
* @method bool hasWarningRecords()
* @method bool hasNoticeRecords()
* @method bool hasInfoRecords()
* @method bool hasDebugRecords()
*
* @method boolean hasEmergencyThatContains($message)
* @method boolean hasAlertThatContains($message)
* @method boolean hasCriticalThatContains($message)
* @method boolean hasErrorThatContains($message)
* @method boolean hasWarningThatContains($message)
* @method boolean hasNoticeThatContains($message)
* @method boolean hasInfoThatContains($message)
* @method boolean hasDebugThatContains($message)
* @method bool hasEmergencyThatContains($message)
* @method bool hasAlertThatContains($message)
* @method bool hasCriticalThatContains($message)
* @method bool hasErrorThatContains($message)
* @method bool hasWarningThatContains($message)
* @method bool hasNoticeThatContains($message)
* @method bool hasInfoThatContains($message)
* @method bool hasDebugThatContains($message)
*
* @method boolean hasEmergencyThatMatches($message)
* @method boolean hasAlertThatMatches($message)
* @method boolean hasCriticalThatMatches($message)
* @method boolean hasErrorThatMatches($message)
* @method boolean hasWarningThatMatches($message)
* @method boolean hasNoticeThatMatches($message)
* @method boolean hasInfoThatMatches($message)
* @method boolean hasDebugThatMatches($message)
* @method bool hasEmergencyThatMatches($message)
* @method bool hasAlertThatMatches($message)
* @method bool hasCriticalThatMatches($message)
* @method bool hasErrorThatMatches($message)
* @method bool hasWarningThatMatches($message)
* @method bool hasNoticeThatMatches($message)
* @method bool hasInfoThatMatches($message)
* @method bool hasDebugThatMatches($message)
*
* @method boolean hasEmergencyThatPasses($message)
* @method boolean hasAlertThatPasses($message)
* @method boolean hasCriticalThatPasses($message)
* @method boolean hasErrorThatPasses($message)
* @method boolean hasWarningThatPasses($message)
* @method boolean hasNoticeThatPasses($message)
* @method boolean hasInfoThatPasses($message)
* @method boolean hasDebugThatPasses($message)
* @method bool hasEmergencyThatPasses($message)
* @method bool hasAlertThatPasses($message)
* @method bool hasCriticalThatPasses($message)
* @method bool hasErrorThatPasses($message)
* @method bool hasWarningThatPasses($message)
* @method bool hasNoticeThatPasses($message)
* @method bool hasInfoThatPasses($message)
* @method bool hasDebugThatPasses($message)
*/
class TestHandler extends AbstractProcessingHandler
{