mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-22 12:53:27 +02:00
Update readme, fix cs
This commit is contained in:
@@ -196,6 +196,7 @@ Processors
|
||||
- _MemoryPeakUsageProcessor_: Adds the peak memory usage to a log record.
|
||||
- _ProcessIdProcessor_: Adds the process id to a log record.
|
||||
- _UidProcessor_: Adds a unique identifier to a log record.
|
||||
- _GitProcessor_: Adds the current git branch and commit to a log record.
|
||||
|
||||
Utilities
|
||||
---------
|
||||
|
@@ -47,6 +47,7 @@ class ElasticaFormatter extends NormalizerFormatter
|
||||
public function format(array $record)
|
||||
{
|
||||
$record = parent::format($record);
|
||||
|
||||
return $this->getDocument($record);
|
||||
}
|
||||
|
||||
@@ -80,6 +81,7 @@ class ElasticaFormatter extends NormalizerFormatter
|
||||
$document->setData($record);
|
||||
$document->setType($this->type);
|
||||
$document->setIndex($this->index);
|
||||
|
||||
return $document;
|
||||
}
|
||||
}
|
||||
|
@@ -73,7 +73,8 @@ class StreamHandler extends AbstractProcessingHandler
|
||||
fwrite($this->stream, (string) $record['formatted']);
|
||||
}
|
||||
|
||||
private function customErrorHandler($code, $msg) {
|
||||
private function customErrorHandler($code, $msg)
|
||||
{
|
||||
$this->errorMessage = preg_replace('{^fopen\(.*?\): }', '', $msg);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user