class ServerInfoProcessor (View source)

A processor for packing $_SERVER info into the extra log info

Properties

protected string[] $includeKeys

The $_SERVER[...] keys to include in the extra data

Methods

__construct(array $includeKeys)

ServerInfoProcessor constructor.

array
__invoke(array $record)

Invoke this processor

Details

__construct(array $includeKeys)

ServerInfoProcessor constructor.

Parameters

array $includeKeys

The keys to pull from $_SERVER

array __invoke(array $record)

Invoke this processor

Parameters

array $record

The given monolog record

Return Value

array

The modified record