Skip to content

Add RedactingFormatter to automatically redact keys/sensitive data before logging records - #2041

Open
Seldaek wants to merge 1 commit into
mainfrom
redacting-formatter
Open

Add RedactingFormatter to automatically redact keys/sensitive data before logging records#2041
Seldaek wants to merge 1 commit into
mainfrom
redacting-formatter

Conversation

@Seldaek

@Seldaek Seldaek commented May 30, 2026

Copy link
Copy Markdown
Owner

Closes #1983

* @throws \InvalidArgumentException If a pattern is not a valid PCRE regex
*/
public function __construct(
private readonly FormatterInterface $formatter,

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There maybe should be a way to access this from the outside so that Handlers that require a specific formatter can guarantee they get the right type or the right type wrapped in this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant