sdk.log.savesnapshot
Home > @matterway/sdk > Log > saveSnapshot
Log.saveSnapshot() function
Takes the snapshot of the current page and saves it to the logger instance. If the logger is not initialized, it will throw an error.
Signature:
export declare function saveSnapshot(ctx: Context): Promise<void>;
Parameters
Parameter | Type | Description |
---|---|---|
ctx | Context | Context object. |
Returns:
Promise<void>
Snapshot html string.