mozilla

Revision 93426 of Logging

  • Revision slug: CommonJS/Logging
  • Revision title: Logging
  • Revision id: 93426
  • Created:
  • Creator: mvalente
  • Is current revision? No
  • Comment 36 words added

Revision Content

The standard logging API in the browser could probably be followed:

console.log(...);
console.debug(...);
...

Current server-side APIs:

Persevere also uses this standard console API for JavaScript logging.
I believe Jaxer may provide this API as well.

Revision Source

<p>The standard logging API in the browser could probably be followed:</p>
<p>console.log(...);<br>
console.debug(...);<br>
...</p>
<p>Current server-side APIs:</p>
<p><a class="external" href="http://docs.persvr.org/documentation/server-side-js" title="http://docs.persvr.org/documentation/server-side-js">Persevere also uses this standard console API</a> for JavaScript logging.<br>
I believe Jaxer may provide this API as well.</p>
<ul> <li><a class="external" href="http://synchro.net" title="http://synchro.net">Synchronet</a> has a global <em>log() </em>method which allows logging of messages to consoles, files, etc. using the 8 standard Unix syslog severity levels: <a class="external" href="http://synchro.net/docs/jsobjs.html#global">http://synchro.net/docs/jsobjs.html#global</a></li> <li>Blackbird offers a dead-simple way to log messages in JavaScript <a class=" external" href="http://www.gscottolson.com/blackbirdjs/" rel="freelink">http://www.gscottolson.com/blackbirdjs/</a></li> <li>XBug the Javascript debugger <a class=" external" href="http://www.xbug.co.uk/" rel="freelink">http://www.xbug.co.uk/</a></li>
</ul>
Revert to this revision