Reply to comment

Client/Server Logging for AJAX

One of the huge pains about writing AJAX applications is handling logging and debugging. Many Java developers use log4j, so something similar would be immensely beneficial. Of course, there is a SourceForge project called log4ajax that attempts to solve this very problem. Eric Spiegelberg wrote an article on today.java.net describing possible usages of log4ajax for both client and server side logging.

Unfortunately, as someone pointed out in the comments for the article, log4ajax isn't really deserving of the log4j appellation. Log4j supports an abstraction between the act of logging something and the processes of actually filtering, formatting and storing the message. Furthermore, the technique he outlined for server-side logging seems overly simplistic. While Mr. Spiegelberg notes that buffering would improve performance, it still seems like log4ajax is not a robust implementation of log4j in an AJAX world. Instead, log4ajax is merely an example of what could be possible, at least in a Panglossian world.

Reply

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <bash>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <java5>, <javascript>, <lisp>, <php>, <python>, <rails>, <ruby>, <sql>. The supported tag styles are: <foo>, [foo].

More information about formatting options