LogRecord
in package
implements
ArrayAccess
Monolog log record
Tags
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
$channel read-only
public
string
$channel
$context read-only
public
array<string|int, mixed>
$context
= []
$datetime read-only
public
DateTimeImmutable
$datetime
$extra
public
array<string|int, mixed>
$extra
= []
$formatted
public
mixed
$formatted
= null
$level read-only
public
Level
$level
$message read-only
public
string
$message
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
booloffsetGet()
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
Return values
array<string|int, mixed>with()
public
with(mixed ...$args) : self
Parameters
- $args : mixed