/** * The structural logging port every call site in this package logs * through. Frozen at four two-arg methods (decision 0004 in the sibling * logging package's repo): a static message plus optional structured * context, with `data.err` reserved for an Error-ish value. */ export interface Logger { debug(msg: string, data?: Record): void; info(msg: string, data?: Record): void; warn(msg: string, data?: Record): void; error(msg: string, data?: Record): void; } /** * Installs `next` as the logger every call site in this package logs * through, forwards it to `@interop/was-sync` as well, and returns the * PREVIOUS logger of this package -- so a test (or an app reconfiguring at * runtime) can restore it. * * @param next {Logger} * @returns {Logger} the logger that was installed before this call. */ export declare function setLogger(next: Logger): Logger; /** * The package-wide logger. Each method forwards to whichever logger is * currently installed, so call sites bound at import time still observe a * later {@link setLogger}. */ export declare const log: Logger; //# sourceMappingURL=log.d.ts.map