__construct() __construct(string|null $dateFormat = null) : mixed Parameters string|null $dateFormat The format of the timestamp: one supported by DateTime::format Returns mixed —
format() format(array $record) : mixed Formats a log record. Parameters array $record Returns mixed — The formatted record
formatBatch() formatBatch(array $records) : mixed Formats a set of log records. Parameters array $records A set of records to format Returns mixed — The formatted set of records
setDateFormat() setDateFormat(string $dateFormat) : self Parameters string $dateFormat Returns self —
getMaxNormalizeDepth() getMaxNormalizeDepth() : int The maximum number of normalization levels to go through Returns int —
setMaxNormalizeDepth() setMaxNormalizeDepth(int $maxNormalizeDepth) : self Parameters int $maxNormalizeDepth Returns self —
getMaxNormalizeItemCount() getMaxNormalizeItemCount() : int The maximum number of items to normalize per level Returns int —
setMaxNormalizeItemCount() setMaxNormalizeItemCount(int $maxNormalizeItemCount) : self Parameters int $maxNormalizeItemCount Returns self —
setJsonPrettyPrint() setJsonPrettyPrint(bool $enable) : self Enables `json_encode` pretty print. Parameters bool $enable Returns self —
removeJsonEncodeOption() removeJsonEncodeOption(int $option) : self Parameters int $option Returns self —
normalize() normalize(mixed $data, int $depth) : null|scalar|(array|scalar|null)[] Parameters mixed $data int $depth Returns null|scalar|(array|scalar|null)[] —
normalizeException() normalizeException(\Throwable $e, int $depth) : array Parameters \Throwable $e int $depth Returns array —
toJson() toJson(mixed $data, bool $ignoreErrors = false) : string Return the JSON representation of a value Parameters mixed $data bool $ignoreErrors Throws \RuntimeException if encoding fails and errors are not ignored Returns string — if encoding fails and ignoreErrors is true 'null' is returned
formatDate() formatDate(\DateTimeInterface $date) : string Parameters \DateTimeInterface $date Returns string —
normalizeValue() normalizeValue(mixed $value) : scalar|null Parameters mixed $value Returns scalar|null —