Filtro en server params

This commit is contained in:
Juan Pablo Vial
2025-06-03 11:37:14 -04:00
parent cb6fa73a21
commit 18fc9a76fd
8 changed files with 81 additions and 17 deletions

View File

@ -0,0 +1,19 @@
<?php
namespace Incoviba\Common\Implement\Log\Formatter;
use Monolog\Formatter\JsonFormatter;
use Monolog\LogRecord;
class PDO extends JsonFormatter
{
public function __construct(int $batchMode = self::BATCH_MODE_JSON, bool $appendNewline = false, bool $ignoreEmptyContextAndExtra = false, bool $includeStacktraces = true)
{
parent::__construct($batchMode, $appendNewline, $ignoreEmptyContextAndExtra, $includeStacktraces);
}
public function format(LogRecord $record): string
{
$normalized = $this->normalize($record, $this->maxNormalizeDepth);
return $normalized['message'];
}
}