SIMPLE_DATE
SIMPLE_DATE = "Y-m-d\\TH:i:sP"
Format a log message into an Elastica Document
$dateFormat : string
$maxNormalizeDepth : int
$maxNormalizeItemCount : int
$index : string
$type : ?string
$jsonEncodeOptions : int
normalize(mixed $data, int $depth) : null|scalar|(array|scalar|null)[]
| mixed | $data | |
| int | $depth |
| None found |
normalizeException(\Throwable $e, int $depth) : array
| \Throwable | $e | |
| int | $depth |
| None found |
toJson(mixed $data, bool $ignoreErrors = false) : string
Return the JSON representation of a value
| mixed | $data | |
| bool | $ignoreErrors |
if encoding fails and errors are not ignored
if encoding fails and ignoreErrors is true 'null' is returned
| None found |
formatDate(\DateTimeInterface $date) : string
| \DateTimeInterface | $date |
| None found |
getDocument(array $record) : \Elastica\Document
Convert a log message into an Elastica Document
| array | $record |
| phpstan-param |
Record $record |
|---|