Log4js 1.0

Log4js 1.0

This document is the API Specification for Log4js 1.0.

Summary

log4js is a library to log in JavaScript in similar manner than in log4j for Java. The API should be nearly the same. This file contains all log4js code and is the only file required for logging.

Example:

  var log = new Log4js.getLogger("some-category-name"); //create logger instance
  log.setLevel(Log4js.Level.TRACE); //set the Level
  log.addAppender(new ConsoleAppender(log, false)); // console that launches in new window
  // if multiple appenders are set all will log
  log.addAppender(new ConsoleAppender(log, true)); // console that is in-line in the page
  log.addAppender(new FileAppender("C:\\somefile.log")); // file appender logs to C:\\somefile.log
 
  ...
 
  //call the log
  log.trace("trace me" );
 


Version: 0.3

Author: Stephan Strittmatter - http://jroller.com/page/stritti , Seth Chisamore - http://www.chisamore.com


File Summary
log4js.js log4js is a library to log in JavaScript in similar manner than in log4j for Java.

Log4js 1.0

Log4js - Logging API for JavaScript
Documentation generated by JSDoc on Tue Aug 5 09:52:42 2008