@zkp2p/reclaim-witness-sdk
Version:
<div> <div> <img src="https://raw.githubusercontent.com/reclaimprotocol/.github/main/assets/banners/Attestor-Core.png" /> </div> </div>
14 lines (13 loc) • 637 B
TypeScript
import type { LogLevel } from '../types';
export declare let logger: import("pino").Logger<never, boolean>;
/**
* Creates a logger instance with optional redaction of PII.
* Replaces default logger
* See PII_PROPERTIES for the list of properties that will be redacted.
*
* @param redactPii - whether to redact PII from logs
* @param level - the log level to use
* @param onLog - a callback to call when a log is written
*/
export declare function makeLogger(redactPii: boolean, level?: LogLevel, onLog?: (level: LogLevel, log: any) => void): import("pino").Logger<never, boolean>;
export declare function redact(json: any): any;