Documentation

FormatterInterface

Interface for formatters

Tags
author

Jordi Boggiano j.boggiano@seld.be

phpstan-import-type

Record from \Monolog\Logger

Table of Contents

format()  : mixed
Formats a log record.
formatBatch()  : mixed
Formats a set of log records.

Methods

format()

Formats a log record.

public format(array<string|int, mixed> $record) : mixed
Parameters
$record : array<string|int, mixed>

A record to format

Tags
phpstan-param

Record $record

Return values
mixed

The formatted record

formatBatch()

Formats a set of log records.

public formatBatch(array<string|int, mixed> $records) : mixed
Parameters
$records : array<string|int, mixed>

A set of records to format

Tags
phpstan-param

Record[] $records

Return values
mixed

The formatted set of records

Search results