From 4122fb0c5a473845bc46dae14fe3827c1ae606ef Mon Sep 17 00:00:00 2001 From: Hector Mendoza Jacobo Date: Wed, 4 Sep 2024 21:55:05 +0000 Subject: [PATCH] Fix types and style --- src/Logging/LogEvent.php | 4 ++-- src/Logging/StdOutLogger.php | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Logging/LogEvent.php b/src/Logging/LogEvent.php index 38697f2c6..e34da0616 100644 --- a/src/Logging/LogEvent.php +++ b/src/Logging/LogEvent.php @@ -50,7 +50,7 @@ class LogEvent /** * An array representation of JSON for the response or request * - * @var null|string|array + * @var null|string|array */ public null|string|array $payload = null; @@ -99,7 +99,7 @@ class LogEvent /** * The Request id for easy trace * - * @var in $requestId; + * @var int $requestId; */ public int $requestId; diff --git a/src/Logging/StdOutLogger.php b/src/Logging/StdOutLogger.php index eeae3fec3..224c9388e 100644 --- a/src/Logging/StdOutLogger.php +++ b/src/Logging/StdOutLogger.php @@ -42,6 +42,11 @@ class StdOutLogger implements LoggerInterface ]; private int $level; + /** + * Constructs a basic PSR-3 logger class that logs into StdOut for GCP Logging + * + * @param string $level The level of the logger instance. + */ public function __construct(string $level = LogLevel::DEBUG) { $this->level = $this->getLevelMap($level);