\Monolog\FormatterJsonFormatter

Encodes whatever record data is passed to it as json

This can be useful to log to databases or remote APIs

Summary

Methods
Properties
Constants
format()
formatBatch()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

format()

format(array  $record) : mixed

Formats a log record.

Parameters

array $record

A record to format

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