Skip to main content

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

ParameterTypeDescription
ctxContextContext object.

Returns:

Promise<void>

Snapshot html string.