1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-18 07:06:33 +02:00

Add LogRecord class, drop PHP <8.1

This commit is contained in:
Jordi Boggiano
2022-02-20 14:39:51 +01:00
parent f2f66cd480
commit 22c8b19358
111 changed files with 501 additions and 361 deletions

View File

@@ -14,6 +14,7 @@ namespace Monolog\Handler;
use RuntimeException;
use Monolog\Logger;
use Monolog\Utils;
use Monolog\LogRecord;
/**
* Handler send logs to Telegram using Telegram Bot API.
@@ -209,7 +210,7 @@ class TelegramBotHandler extends AbstractProcessingHandler
/**
* @inheritDoc
*/
protected function write(array $record): void
protected function write(LogRecord $record): void
{
$this->send($record['formatted']);
}