Skip to content

Commit 953aca7

Browse files
committed
Fixed issue with McpLogger compatibility with LoggerInterface
1 parent 0112ac3 commit 953aca7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Capability/Logger/McpLogger.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,13 @@ public function __construct(
3333
) {
3434
}
3535

36-
public function log($level, string|\Stringable $message, array $context = []): void
36+
/**
37+
* Logs with an arbitrary level.
38+
*
39+
* @param string|\Stringable $message
40+
* @param array<string, mixed> $context
41+
*/
42+
public function log($level, $message, array $context = []): void
3743
{
3844
// Always log to fallback logger if provided (for local debugging)
3945
$this->fallbackLogger?->log($level, $message, $context);

0 commit comments

Comments
 (0)