I implemented data redaction for today. The feature will be available through a dedicated package called @logtape/redaction (JSR & npm). It provides two complementary approaches to protect sensitive information in your logs:

  1. Pattern-based redaction: Uses regex patterns to identify and mask sensitive data in formatted log output
  2. Field-based redaction: Redacts properties by field names in structured log data

Looking forward to releasing this with LogTape 0.10.0 soon!

0

If you have a fediverse account, you can quote this note from your own instance. Search https://hollo.social/@hongminhee/0196e416-8aca-7a9b-ba43-5cc314adaed8 on your instance and quote it. (Note that quoting is not supported in Mastodon.)