ServerJS/Logging
From MozillaWiki
< ServerJS
Logging
A standard logging API has proven to be useful in many languages. This is especially true for server side environments where things are often running unattended (unlike client side work, where you are personally actively using the code that is doing the logging).
Prior Art
The standard logging API in the browser is one option:
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.
- Synchronet has a global log() method which allows logging of messages to consoles, files, etc. using the 8 standard Unix syslog severity levels: http://synchro.net/docs/jsobjs.html#global
- Blackbird offers a dead-simple way to log messages in JavaScript http://www.gscottolson.com/blackbirdjs/
- XBug the Javascript debugger http://www.xbug.co.uk/
- NitobiBug a browser-based JavaScript object logger and inspection tool http://www.nitobibug.com/
- Java Logging is based on the pattern established by log4j to provide flexible logging.