Documentation

LogRecord
in package
implements ArrayAccess

Monolog log record

Tags
author

Jordi Boggiano j.boggiano@seld.be

template-implements

Table of Contents

Interfaces

ArrayAccess

Constants

MODIFIABLE_FIELDS  = ['extra' => true, 'formatted' => true]

Properties

$channel  : string
$context  : array<string|int, mixed>
$datetime  : DateTimeImmutable
$extra  : array<string|int, mixed>
$formatted  : mixed
$level  : Level
$message  : string

Methods

__construct()  : mixed
offsetExists()  : bool
offsetGet()  : mixed
offsetSet()  : void
offsetUnset()  : void
toArray()  : array<string|int, mixed>
with()  : self

Constants

MODIFIABLE_FIELDS

private mixed MODIFIABLE_FIELDS = ['extra' => true, 'formatted' => true]

Properties

$context read-only

public array<string|int, mixed> $context = []

$datetime read-only

public DateTimeImmutable $datetime

$extra

public array<string|int, mixed> $extra = []

Methods

__construct()

public __construct(DateTimeImmutable $datetime, string $channel, Level $level, string $message[, array<string|int, mixed> $context = [] ][, array<string|int, mixed> $extra = [] ][, mixed $formatted = null ]) : mixed
Parameters
$datetime : DateTimeImmutable
$channel : string
$level : Level
$message : string
$context : array<string|int, mixed> = []
$extra : array<string|int, mixed> = []
$formatted : mixed = null

offsetExists()

public offsetExists(mixed $offset) : bool
Parameters
$offset : mixed
Return values
bool

offsetGet()

public & offsetGet(mixed $offset) : mixed
Parameters
$offset : mixed

offsetSet()

public offsetSet(mixed $offset, mixed $value) : void
Parameters
$offset : mixed
$value : mixed

offsetUnset()

public offsetUnset(mixed $offset) : void
Parameters
$offset : mixed

toArray()

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

array{message: string, context: mixed[], level: value-ofLevel::VALUES, level_name: value-ofLevel::NAMES, channel: string, datetime: \DateTimeImmutable, extra: mixed[]}

Return values
array<string|int, mixed>

with()

public with(mixed ...$args) : self
Parameters
$args : mixed
Return values
self

        
On this page

Search results