Skip to main content

RedactionConfig

Defined in: src/lib/logging/redaction.ts:72

Configuration for the redaction system.

Properties

PropertyTypeDescriptionDefined in
additionalPatternsSensitivePattern[]Additional sensitive patterns beyond the built-in ones.src/lib/logging/redaction.ts:102
detectPiiValuesbooleanWhether to redact values that look like PII regardless of field name. Detects emails, phone numbers, SSNs, credit cards, etc. Default truesrc/lib/logging/redaction.ts:97
enabledbooleanWhether redaction is enabled. Default truesrc/lib/logging/redaction.ts:77
maxDepthnumberMaximum depth for recursive object traversal. Prevents infinite loops in circular references. Default 10src/lib/logging/redaction.ts:90
redactedPlaceholderstringThe string to use for fully redacted values. Default "[REDACTED]"src/lib/logging/redaction.ts:83