Skip to content

Commit

Permalink
Fix types and style
Browse files Browse the repository at this point in the history
  • Loading branch information
Hectorhammett committed Sep 4, 2024
1 parent e3eb27e commit 4122fb0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Logging/LogEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class LogEvent
/**
* An array representation of JSON for the response or request
*
* @var null|string|array
* @var null|string|array<string, mixed>
*/
public null|string|array $payload = null;

Expand Down Expand Up @@ -99,7 +99,7 @@ class LogEvent
/**
* The Request id for easy trace
*
* @var in $requestId;
* @var int $requestId;
*/
public int $requestId;

Expand Down
5 changes: 5 additions & 0 deletions src/Logging/StdOutLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4122fb0

Please sign in to comment.