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);