new: [internal] New option `Security.ecs_log` to enable ECS logging

pull/9465/head
Jakub Onderka 2023-12-25 13:11:19 +01:00
parent 31f40c8d43
commit 412ba0f192
1 changed files with 4 additions and 2 deletions

View File

@ -429,14 +429,16 @@ class Log extends AppModel
}
/**
* TODO: Check if ECS is enabled
*
* @param array $data
* @return void
* @throws JsonException
*/
private function sendToEcs(array $data)
{
if (!Configure::read('Security.ecs_log')) {
return;
}
$action = $data['Log']['action'];
$type = 'info';
if (isset($action)) {