mw.errorLogger

Allows the logging of client errors for later inspections.

Methods

logError(error, topic)static #

Logs an error by notifying subscribers to the given mw.track() topic (by default error.caught) that an event has occurred.

Parameters:

Name Type Attributes Default Description
error Error
topic string optional
'error.caught'

Error topic. Conventionally in the form 'error.⧼component⧽' (where ⧼component⧽ identifies the code logging the error at a high level; e.g. an extension name).

Source:

Logs an error by notifying subscribers to the given mw.track() topic (by default error.caught) that an event has occurred.