$processors
$processors : callable[]
Elasticsearch handler
$processors : callable[]
$formatter : ?\Monolog\Formatter\FormatterInterface
$level : int
$bubble : bool
$client : \Elasticsearch\Client|\Elastic\Elasticsearch\Client
$options : array
$needsType : bool
__construct(\Elasticsearch\Client|\Elastic\Elasticsearch\Client $client, array $options = [], mixed $level = Logger::DEBUG, bool $bubble = true) : mixed
\Elasticsearch\Client|\Elastic\Elasticsearch\Client | $client | Elasticsearch Client object |
array | $options | Handler configuration |
mixed | $level | |
bool | $bubble |
createExceptionFromResponses(array|\Elastic\Elasticsearch\Response\Elasticsearch $responses) : \Throwable
Creates elasticsearch exception from responses array
Only the first error is converted into an exception.
array|\Elastic\Elasticsearch\Response\Elasticsearch | $responses | returned by $this->client->bulk() |