redactByField(sink: Sink
| Sink & Disposable
| Sink & AsyncDisposable,options?: FieldRedactionOptions | FieldPatterns,): Sink
| Sink & Disposable
| Sink & AsyncDisposable
Redacts properties in a LogRecord based on the provided field patterns and action.
Note that it is a decorator which wraps the sink and redacts properties before passing them to the sink.
optional
options: FieldRedactionOptions | FieldPatterns = DEFAULT_REDACT_FIELDS
The redaction options.