1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-23 17:46:09 +02:00

Update readme, fix cs

This commit is contained in:
Jordi Boggiano
2013-11-20 13:30:00 +01:00
parent aff8d92e29
commit 89ba162dca
6 changed files with 16 additions and 12 deletions

View File

@@ -47,6 +47,7 @@ class ElasticaFormatter extends NormalizerFormatter
public function format(array $record)
{
$record = parent::format($record);
return $this->getDocument($record);
}
@@ -71,7 +72,7 @@ class ElasticaFormatter extends NormalizerFormatter
/**
* Convert a log message into an Elastica Document
*
* @param array $record Log message
* @param array $record Log message
* @return Document
*/
protected function getDocument($record)
@@ -80,6 +81,7 @@ class ElasticaFormatter extends NormalizerFormatter
$document->setData($record);
$document->setType($this->type);
$document->setIndex($this->index);
return $document;
}
}