Skip to main content

SensitivePattern

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

Configuration for a sensitive field pattern.

Properties

PropertyTypeDescriptionDefined in
patternstring | RegExpPattern to match against field names. Can be a string (case-insensitive substring match) or RegExp.src/lib/logging/redaction.ts:54
redactor?(value: unknown, fieldName: string) => unknownCustom redaction function for complex redaction logic. If provided, overrides the strategy.src/lib/logging/redaction.ts:66
strategy?RedactionStrategyHow to redact the value when this pattern matches. Default "full"src/lib/logging/redaction.ts:60