Logging and Ajax: Beyond alert()'s
Logging and Ajax: Beyond alert()'s: "Eric Spiegelberg has written Log4Ajax , an article with corresponding demo code for logging ajax applications. Eric's article builds upon an earlier, simpler system for logging from Joshua Gitlin's article Errors and Ajax.
It details a logging system in javascript displayed to an in browser console, with the option of sending messages to the server (via ajax) in order to persist them. Eric uses the java based log package log4j on the server side to capture the log messages from the client, but the idea could easily be adapted to whatever sort of server side logging system you want.
He also talks about some possible improvements, like filter levels for client and server and a queue to keep your server from getting hammered by debug messages. An opportunity for some open source development, perhaps (although I didn't see mention of the license terms anywhere).
You can download the code used at the sourceforge project page, and also view a live demo. A simple yet powerful option for your logging when alert() messages won't cut it.
"

0 Comments:
Post a Comment
<< Home