- Log4js
Infobox Software
name = Log4js
caption = Log4js Logo
developer = [http://log4js.berlios.de Stephan Strittmatter, Seth Chisamore]
latest_release_version = 0.2
latest_release_date =March 3 ,2006
operating_system = Windows,Linux ,Mac OS
genre =Framework
license =Apache Software Foundation
website = [http://log4js.berlios.de http://log4js.berlios.de]Log4js is a framework written in
JavaScript to log application events.The framework is very close to the API of
Log4j . It is also available under the licence ofApache Software Foundation .Functionality
The base concept is identical to
Log4j . The same log levels and almost all methods are identical.One special feature of Log4js is the ability to log the events of the browser remote on the server. Using Ajax it is possible to send the logging events in several formats (
XML ,JSON , plainASCII etc.) to the server to be evaluated there.Appender
Following appenders are implemented currently:;AjaxAppender: Sends the logs via XmlHttpRequest (Ajax) to the server to be processed there.;ConsoleAppender: Logs within the HTML page or in a separate window.;FileAppender: Writes to a local file (
Internet Explorer andMozilla supported).;JSConsoleAppender: Appender for the JavaScript Console ofMozilla ,Opera andSafari .;MetatagAppender: Adds the log events to Metatags in theDOM of document.;WindowsEventsAppender: Using Internet Explorer it is possible to log to Windows System Events.Layout
The Layout classes are for different formattings of the events:;BasicLayout: Simple textual output of the events.;HtmlLayout: Formats the event as HTML <div>-element.;JSONLayout: Converts the events to
JSON -objects which are readable in many other programming languages likePerl ,PHP and Java.;XMLLayout: XML formatted output.External links
* [http://log4js.berlios.de Log4js Homepage]
* [http://scratchpad.wikia.com/wiki/Log4js Log4js Wiki]
* [http://logging.apache.org/ Apache Logging Homepage]
Wikimedia Foundation. 2010.