1 | import * as logform from "logform";
|
2 | /**
|
3 | * Prepare the logging to exclude something.
|
4 | * If you know you're about to, say, spawn a process that will get printed
|
5 | * to the log and will reveal something secret, then prepare the logger to
|
6 | * exclude that secret thing.
|
7 | *
|
8 | * Pass a regular expression that will match the secret thing and very little else.
|
9 | */
|
10 | export declare function addRedaction(redacted: RegExp, suggestedReplacement?: string): void;
|
11 | /**
|
12 | * @deprecated use addRedaction
|
13 | */
|
14 | export declare const addLogRedaction: typeof addRedaction;
|
15 | export declare function redact(message: string): string;
|
16 | export declare function redactLog(logInfo: logform.TransformableInfo): logform.TransformableInfo;
|
17 | //# sourceMappingURL=redact.d.ts.map |
\ | No newline at end of file |