NOTE: THIS PROJECT HAS MOVED TO GITHUB

New Location: http://github.com/tommck/jstrace

Project Description

JsTrace makes it easier for JavaScript developers to debug the various areas and modules in their JavaScript code by allowing module-level "switches" to set various levels of debugging output

It's written in pure JavaScript

Usage

It's pretty easy to use..

Output Diagnostics

var tracer = new Trace('ModuleName');
tracer.info('Testing Tracer', object1, object2);

Flipping Switches

Trace.traceLevel('ModuleName', Trace.Levels.debug);

For More Details, go to the Documentation

The internals of the code are based on the 'ba-debug' project by Ben Alman, which can be found here:
http://benalman.com/projects/javascript-debug-console-log/

For a bit more info, check out my original blog post about this:
http://codemares.blogspot.com/2011/09/much-to-my-chagrin-i-have-been-doing.html

Last edited Nov 24 at 3:40 PM by tommck, version 7