Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
clienterror.js
readme.md

readme.md

Installation

ClientError module captures all client-side errors, then it writes into the console or log file on the server-side. The module appends a small JS script into the @{head} tag.

  • download and copy clienterror.js into the /modules/ directory or create a definition with:
var options = {};

// options.logger = true;
// options.console = false;
// options.url = '/$clienterror/';

// The framework adds `.log` extension automatically
// options.filename = 'logger';
INSTALL('module', 'https://modules.totaljs.com/latest/clienterror.js', options);