SensitivePattern
Defined in: src/lib/logging/redaction.ts:49
Configuration for a sensitive field pattern.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
pattern | string | RegExp | Pattern 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) => unknown | Custom redaction function for complex redaction logic. If provided, overrides the strategy. | src/lib/logging/redaction.ts:66 |
strategy? | RedactionStrategy | How to redact the value when this pattern matches. Default "full" | src/lib/logging/redaction.ts:60 |