1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-21 16:46:11 +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

@@ -11,6 +11,8 @@
namespace Monolog\Processor;
use Monolog\LogRecord;
/**
* Injects url/method and remote IP of the current web request in all records
*
@@ -76,7 +78,7 @@ class WebProcessor implements ProcessorInterface
/**
* {@inheritDoc}
*/
public function __invoke(array $record): array
public function __invoke(LogRecord $record): LogRecord
{
// skip processing if for some reason request data
// is not present (CLI or wonky SAPIs)