@atomist/automation-client
Version:
Atomist API for software low-level client
17 lines • 739 B
TypeScript
import * as logform from "logform";
/**
* Prepare the logging to exclude something.
* If you know you're about to, say, spawn a process that will get printed
* to the log and will reveal something secret, then prepare the logger to
* exclude that secret thing.
*
* Pass a regular expression that will match the secret thing and very little else.
*/
export declare function addRedaction(redacted: RegExp, suggestedReplacement?: string): void;
/**
* @deprecated use addRedaction
*/
export declare const addLogRedaction: typeof addRedaction;
export declare function redact(message: string): string;
export declare function redactLog(logInfo: logform.TransformableInfo): logform.TransformableInfo;
//# sourceMappingURL=redact.d.ts.map