13.07.2015 Views

Thesis full text PDF - Politecnico di Milano

Thesis full text PDF - Politecnico di Milano

Thesis full text PDF - Politecnico di Milano

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

7.5. Javascript Logging frameworks7.5.1. Log4javascriptLog4javascript is a JavaScript logging framework based on the Java logging framework log4j. Itspurpose is to provide JavaScript developers with a familiar, robust and flexible logging frameworkwith which to debug JavaScript applications. This is becoming increasingly important as webinterfaces become richer thanks to the recent appreciation of the possibilities of Ajax.Log4javascript's main features: based on Java's log4j, implementing loggers, appenders, layouts and levels, provi<strong>di</strong>nga familiar interface; a powerful log console with severity filters and searching (inclu<strong>di</strong>ng regular expressionsearches); a flexible Ajax appender that posts log messages back to the server; several layouts for flexible formatting of log messages, inclu<strong>di</strong>ng XML, JSON, andPattern layouts; crunched and stub versions of the main .js file included in the <strong>di</strong>stribution.Since a major use of JavaScript logging is in browser testing, log4javascript is tested and worksacross all recent major browsers, inclu<strong>di</strong>ng : IE5+ (for Windows) Mozilla, Firefox, Netscape Safari 1.3+ Opera 7.5+ Konqueror 3.4+Log4javascript is <strong>di</strong>stributed under the Apache License, Version 2.0.7.5.2. JSLogJSLog is a Javascript logging framework.http://www.timdown.co.uk/log4javascript JSLog's focus is on ease of integration and deployment, provi<strong>di</strong>ng a logginginfrastructure with minimal performance impacts, and allowing you to easily"productionize" you code (even with the logging statements still included), bychanging one configuration setting. Open-source by Andre Lewis7.5.3. Log4Jshttp://earthcode.com/blog/2005/12/jslog.htmlLog4js is a logging API for JavaScript. The main goal is to have a robust and solid logging APIwhich is very simmilar to the Java logging API Log4j. There are several ways to log using"appender"s. The current available Appenders are: DummyAppender: log nothing. ConsoleAppender: open a new window in the browser or an inline <strong>di</strong>v element an<strong>di</strong>nsert log messages in real time.92

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!