Accepts a single client log event. Always returns 204:
sendBeacon ignores the response anyway, and we never want to surface
validation issues back to the user.
post/api/client-logs
Request body
level0 | 1 | 2 | 3 | 4
Severity of a log event coming from the React client.
Mapped to Microsoft.Extensions.Logging.LogLevel by the receiving controller.
messagestring nullable
Short human-readable message.
timestampstring date-time nullable
Browser-side ISO-8601 timestamp.
urlstring nullable
Page URL where the event occurred.
sourcestring nullable
Where it was fired from: api-error, token-refresh-failed, window-error, unhandled-rejection, manual.
releasestring nullable
Frontend release version (taken from package.json on the client).
contextobject nullable
Free-form metadata: request url, http status, stack, etc.
Must not contain PII (passwords, tokens, request bodies).