Rob Gonda's Blog

ajaxCFC meets log4javascript

I was playing today with log4javascript and I thought it was a good idea to integrate it with ajaxCFC. I added a couple of basic log calls as shown in this example.

I added a trace for the invoked call, showing the call ID, remote method name, and serialized arguments, followed by the server response. I also added a broken call to illustrate logs of a server side error.

In order to enable the debugging, all you have to do is to add debug: true to the ajaxConfig object. If this key is not present, the debugging classes won't even be included, to save on loading time and performance.

Let me know what you think.

There are no trackbacks for this entry.

Trackback URL for this entry:

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
This blog is running version 5.9.003. Contact Blog Owner