logActivity
Logs an activity in the website activity log. Useful if you want information about how long an action takes for users, or you want to record when users execute an action for other reasons.
If you don't have the time elapsed ready, it is recommended to use startActivity
import { logActivity } from "@olenbetong/appframe-core";
async function runExport(domain: string) {
try {
let start = performance.now();
await procExport.execute({ Domain: domain });
logActivity("Export", { Domain: domain }, performance.now() - start);
} catch (error) {
alert(error.message);
}
}API
export declare function logActivity(action: string, parameters: Record<string, any>, timeElapsed: number): Promise<void>;Last updated
Was this helpful?