Documentation

LogRecord extends ArrayAccess

Monolog log record interface for forward compatibility with Monolog 3.0

This is just present in Monolog 2.4+ to allow interoperable code to be written against both versions by type-hinting arguments as array|\Monolog\LogRecord $record

Do not rely on this interface for other purposes, and do not implement it.

Tags
author

Jordi Boggiano j.boggiano@seld.be

template-extends

\ArrayAccess<'message'|'level'|'context'|'level_name'|'channel'|'datetime'|'extra'|'formatted', mixed>

phpstan-import-type

Record from Logger

Table of Contents

toArray()  : array<string|int, mixed>

Methods

toArray()

public toArray() : array<string|int, mixed>
Tags
phpstan-return

Record

Return values
array<string|int, mixed>

Search results