src/Viserio/Component/Log/DataCollector/LoggerDataCollector.php
private function sanitizeLogs(array $logs): array
    {
        $sanitizedLogs = [];

        foreach ($logs as $log) {
            if (! $this->isSilencedOrDeprecationErrorLog($log)) {
                $sanitizedLogs[] = $log;

                continue;
            }

            $exception = $log['context']['exception'];
            $errorId   = \md5("{$exception->getSeverity()}/{$exception->getLine()}/{$exception->getFile()}\0{$log['message']}", true);

            if (isset($sanitizedLogs[$errorId])) {
                $sanitizedLogs[$errorId]['errorCount']++;
            } else {
                $log += [
                    'errorCount' => 1,
                    'scream'     => $exception instanceof SilencedErrorContext,
                ];

                $sanitizedLogs[$errorId] = $log;
            }
        }

        return \array_values($sanitizedLogs);
    }
private function sanitizeLogs(array $logs): array
    {
        $sanitizedLogs = [];

        foreach ($logs as $log) {
            if (! $this->isSilencedOrDeprecationErrorLog($log)) {
                $sanitizedLogs[] = $log;

                continue;
            }

            $exception = $log['context']['exception'];
            $errorId   = \md5("{$exception->getSeverity()}/{$exception->getLine()}/{$exception->getFile()}\0{$log['message']}", true);

            if (isset($sanitizedLogs[$errorId])) {
                $sanitizedLogs[$errorId]['errorCount']++;
            } else {
                $log += [
                    'errorCount' => 1,
                    'scream'     => $exception instanceof SilencedErrorContext,
                ];

                $sanitizedLogs[$errorId] = $log;
            }
        }

        return \array_values($sanitizedLogs);
    }
Undocumented function.

@param array $logs

@return array