TJavascriptLogger

API Manual

TJavascriptLogger provides logging for client-side javascript. It is mainly a wrapper of the Javascript developed at http://gleepglop.com/javascripts/logger/.

To use TJavascriptLogger, simply place the following component tag in a page template.

<com:TJavascriptLogger />

Then, the client-side Javascript may contain the following statements. When they are executed, they will appear in the logger window.

Logger.info('something happend');
Logger.warn('A warning');
Logger.error('This is an error');
Logger.debug('debug information');

To toggle the visibility of the logger and console on the browser window, press ALT-D (or CTRL-D on OS X).