function logError
logError(context: ErrorContext): void

Log a classified error to console.error and persist to the activity log. Console output uses error codes and safe metadata (never PII). Activity log entry is encrypted and visible to admins on the log pages.

Parameters

Return Type

void

Usage

import { logError } from "docs/utilities.ts";