1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-25 10:36:33 +02:00

Rename ElasticSearch to Elasticsearch

This commit is contained in:
Avtandil Kikabidze
2018-06-27 11:48:39 +04:00
parent 34e3a48326
commit 4c7795d310
7 changed files with 67 additions and 67 deletions

View File

@@ -14,29 +14,29 @@ namespace Monolog\Formatter;
use DateTime;
/**
* Format a log message into an ElasticSearch record
* Format a log message into an Elasticsearch record
*
* @author Avtandil Kikabidze <akalongman@gmail.com>
*/
class ElasticSearchFormatter extends NormalizerFormatter
class ElasticsearchFormatter extends NormalizerFormatter
{
/**
* @var string ElasticSearch index name
* @var string Elasticsearch index name
*/
protected $index;
/**
* @var string ElasticSearch record type
* @var string Elasticsearch record type
*/
protected $type;
/**
* @param string $index ElasticSearch index name
* @param string $type ElasticSearch record type
* @param string $index Elasticsearch index name
* @param string $type Elasticsearch record type
*/
public function __construct($index, $type)
{
// ElasticSearch requires an ISO 8601 format date with optional millisecond precision.
// Elasticsearch requires an ISO 8601 format date with optional millisecond precision.
parent::__construct(DateTime::ISO8601);
$this->index = $index;
@@ -74,7 +74,7 @@ class ElasticSearchFormatter extends NormalizerFormatter
}
/**
* Convert a log message into an ElasticSearch record
* Convert a log message into an Elasticsearch record
*
* @param array $record Log message
* @return array