@hongminhee@hollo.social

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!

unstable.logtape.org

Data redaction | LogTape

Simple logging library with zero dependencies for Deno, Node.js, Bun, browsers, and edge functions

3 likes