@omnia/fx
Version:
Provide Omnia Fx typings and tooling for clientside Omnia development.
23 lines (22 loc) • 878 B
TypeScript
/**
* We have issue log so much messages in debug mode that make chrome console tool hang.
* Also have many call JSON.stringify(rule) on each manifest that impact to perf.
* So we will implement lazy log internal here and that write log manifest info with query string debug=true&manifest=true
*/
export declare class InternalManifestLog {
private static _enableLog;
/**
* Logs the object with logLevel.debug
*/
static logDebug(callback: () => any): void;
/**
* Logs the time since the start measurement point was created
* (Only if window.href contains ?debug=true)
*/
static logDebugTimeMeasurement(uniqueMeasurementName: string, callback: () => string): void;
/**
* Start time messurment for a named messurment
* (Only if window.href contains ?debug=true)
*/
static logDebugTimeStart(uniqueMeasurementName: string): void;
}