* Use of this software is governed by the Business Source License included in the LICENSE file and at https://getparthenon.com/docs/next/license.
9
*
10
* Change Date: 26.06.2026 ( 3 years after 2.2.0 release )
11
*
12
* On the date above, in accordance with the Business Source License, use of this software will be governed by the open source license specified in the LICENSE file.
13
*/
14
15
namespace Parthenon\Common\Logging\Monolog;
16
17
use Monolog\LogRecord;
18
use Monolog\Processor\ProcessorInterface;
19
20
final class ExceptionProcessor implements ProcessorInterface
21
{
22
public function __invoke(LogRecord $record)
23
{
24
$output = [];
25
26
$output = $this->getArr($record, $output);
27
28
return $output;
29
}
30
31
/**
32
* @param LogRecord $record
33
*
34
* @return array
35
*/
36
public function getArr(mixed $record, array $output)