$serverData
$serverData : array<string,mixed>|\ArrayAccess<string,mixed>
Injects url/method and remote IP of the current web request in all records
$serverData : array<string,mixed>|\ArrayAccess<string,mixed>
$extraFields : array<string,string>
Default fields
Array is structured as [key in record.extra => key in $serverData]
__construct(array<string,mixed>|\ArrayAccess<string,mixed>|null $serverData = null, array<string,string>|string[]|null $extraFields = null) : mixed
array |
$serverData | Array or object w/ ArrayAccess that provides access to the $_SERVER data |
array |
$extraFields | Field names and the related key inside $serverData to be added (or just a list of field names to use the default configured $serverData mapping). If not provided it defaults to: [url, ip, http_method, server, referrer] + unique_id if present in server data |