Controller for logging User Interface errors.

Receives an JSON like:

    "type": "error",
    "message": "The error message",
    "file": "",
    "line": 123,
    "col": 12,
    "stack": "[email protected]://\[email protected]",
    "user_agent": ""Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit...",
    "url": ""

The type must be one of: "error", "warning", "info", or "debug".

The JSON payload is logged in the info log and the database UI log. Only the fields above are logged in the database, other fields are dropped.

All database log entries are rate limited to a maximum of 1 per second. The log can be viewed at /admin/log/ui.

See mod_logging