From ddb84917b558f7907577c08a732cc5d70c31974c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Tobias=20de=20Freitas=20Neto?= Date: Wed, 12 Mar 2025 17:09:17 -0400 Subject: [PATCH] Capturando server_ip e adicionando ao logException --- src/app/Traits/LogTrait.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/Traits/LogTrait.php b/src/app/Traits/LogTrait.php index bab5939..a08db64 100644 --- a/src/app/Traits/LogTrait.php +++ b/src/app/Traits/LogTrait.php @@ -149,6 +149,8 @@ trait LogTrait $this->initializeLogServices(); + $customData['server_ip'] = config('laravel-logs-layer.server_ip'); + foreach ($this->logServices as $logService) { $logService->$log_level($caller, $exception, ExceptionContextDTO::fromArray([ 'code' => $errorCode,