I see some plugins and scripts to remove PII from monolog logs, but everything i have found is realted to Monolog 2. How can i remove information like CreditCard data from any logs?
Here's and example i found for Monolog 2.0
If I implement what is here with Monolog 3, I get the following error.
Fatal error: Declaration of RedactSensitive\RedactSensitiveProcessor::invoke(array $record): array must be compatible with Monolog\Processor\ProcessorInterface::invoke(Monolog\LogRecord $record) in /... .../RedactSensitiveProcessor.php on line 34
Monolog version 3?
I see some plugins and scripts to remove PII from monolog logs, but everything i have found is realted to Monolog 2. How can i remove information like CreditCard data from any logs?
Here's and example i found for Monolog 2.0
If I implement what is here with Monolog 3, I get the following error.
Fatal error: Declaration of RedactSensitive\RedactSensitiveProcessor::invoke(array $record): array must be compatible with Monolog\Processor\ProcessorInterface::invoke(Monolog\LogRecord $record) in /... .../RedactSensitiveProcessor.php on line 34