From b90cd58e2c8ebf1ffb5acf1a87bfa5bf0394c0fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Tobias=20de=20Freitas=20Neto?= Date: Mon, 18 Dec 2023 17:32:10 -0400 Subject: [PATCH] Adicionando tags aos logs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Esta entrada não está sendo utilizada, mas deverá ser no futuro. --- src/app/Services/AbstractLogService.php | 1 + src/app/Traits/LogTrait.php | 1 + 2 files changed, 2 insertions(+) diff --git a/src/app/Services/AbstractLogService.php b/src/app/Services/AbstractLogService.php index 45f5409..39e794c 100644 --- a/src/app/Services/AbstractLogService.php +++ b/src/app/Services/AbstractLogService.php @@ -169,6 +169,7 @@ abstract class AbstractLogService implements Contracts\LogServiceInterface 'custom_data' => $context['custom_data'], 'current_url' => $context['current_url'], 'current_user' => $this->asPrettyJson($context['current_user']), + 'tags' => $context['tags'], 'queries' => $this->asPrettyJson($this->logDataContainer->getCapturedQueries()), 'guzzle' => $this->asPrettyJson($this->logDataContainer->getCapturedHttpClientEvents()), ]; diff --git a/src/app/Traits/LogTrait.php b/src/app/Traits/LogTrait.php index decdab1..c0b79d5 100644 --- a/src/app/Traits/LogTrait.php +++ b/src/app/Traits/LogTrait.php @@ -69,6 +69,7 @@ trait LogTrait 'custom_data' => $customData, 'current_url' => request()->fullUrl(), 'current_user' => auth()->user(), + 'tags' => [], ]); } }