Use this pattern
to match and replace a single bit of information from the logs:
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %replace(%msg){'(?<=That-Important-Token:).*', '[REDACTED]'}%n</pattern>
The following can be used to augment for multiple matching instead of adding multiple nested replace()
statements that would look off
(?>That-Token|Whatever|GDPR).\K.*