protected function LagoonLogger::transformDataForProcessor in Lagoon Logs 7
Parameters
$logEntry:
$message:
$base_url:
Return value
array
1 call to LagoonLogger::transformDataForProcessor()
File
- lib/
LagoonLogger.php, line 153
Class
Code
protected function transformDataForProcessor($logEntry, $message, $base_url) {
$processorData = [
"extra" => [],
];
$processorData['channel'] = $logEntry['type'];
$processorData['message'] = $message;
$processorData['base_url'] = $base_url;
$processorData['extra']['ip'] = $logEntry['ip'];
$processorData['extra']['request_uri'] = $logEntry['request_uri'];
$processorData['level_name'] = $this
->mapWatchdogToMonologLevelNames($logEntry['severity']);
$processorData['extra']['uid'] = $logEntry['uid'];
$processorData['extra']['link'] = strip_tags($logEntry['link']);
$processorData['extra']['application'] = self::LAGOON_LOGS_DEFAULT_IDENTIFIER;
return $processorData;
}