docs: add inline documentation where missing
This commit is contained in:
1 parent
2fe9185a6f
commit
ea1ce4a029
18 files changed
+150
No files matched your search
@@ -1,11 +1,19 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Logger;
|
||||
|
||||
use Monolog\Attribute\AsMonologProcessor;
|
||||
use Monolog\LogRecord;
|
||||
use Symfony\Component\HttpFoundation\RequestStack;
|
||||
|
||||
/**
|
||||
* Enriches log records with HTTP request context.
|
||||
*
|
||||
* Adds the current request URI and method to the log record's extra data,
|
||||
* enabling correlation of log entries with specific HTTP requests.
|
||||
*/
|
||||
#[AsMonologProcessor]
|
||||
class RequestInfoProcessor
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user