1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-23 09:36:11 +02:00
This commit is contained in:
Jordi Boggiano
2018-12-08 18:16:32 +01:00
parent b978700c05
commit 0ad73a526f
16 changed files with 25 additions and 21 deletions

View File

@@ -81,6 +81,7 @@ class ElasticaHandler extends AbstractProcessingHandler
if ($formatter instanceof ElasticaFormatter) {
return parent::setFormatter($formatter);
}
throw new \InvalidArgumentException('ElasticaHandler is only compatible with ElasticaFormatter');
}

View File

@@ -89,6 +89,7 @@ class ElasticsearchHandler extends AbstractProcessingHandler
if ($formatter instanceof ElasticsearchFormatter) {
return parent::setFormatter($formatter);
}
throw new InvalidArgumentException('ElasticsearchHandler is only compatible with ElasticsearchFormatter');
}
@@ -122,7 +123,7 @@ class ElasticsearchHandler extends AbstractProcessingHandler
/**
* Use Elasticsearch bulk API to send list of documents
*
* @param array $records
* @param array $records
* @throws \RuntimeException
*/
protected function bulkSend(array $records): void

View File

@@ -39,8 +39,8 @@ class ZendMonitorHandler extends AbstractProcessingHandler
];
/**
* @param string|int $level The minimum logging level at which this handler will be triggered.
* @param bool $bubble Whether the messages that are handled can bubble up the stack or not.
* @param string|int $level The minimum logging level at which this handler will be triggered.
* @param bool $bubble Whether the messages that are handled can bubble up the stack or not.
* @throws MissingExtensionException
*/
public function __construct($level = Logger::DEBUG, bool $bubble = true)