blog | bio | agenda | jobs | ajaxCFC

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.

TrackBacks
There are no trackbacks for this entry.

Trackback URL for this entry:
http://www.robgonda.com/blog/trackback.cfm?0C5F25D4-3048-7431-E4265FF9F10C2B21

Comments
Nice Rob, really usefull!
# Posted By Bob L. | 10/3/06 2:52 AM
Great work Rob. Thats definitely going to be a huge help in debugging.

Rey...
# Posted By Rey Bango | 10/3/06 12:57 PM
Nice Rob! go ahead!
# Posted By Erick | 10/10/06 11:18 AM
There's a new version of log4javascript just released, in case you're interested. http://www.timdown.co.uk/log4javascript/
# Posted By Tim Down | 10/20/06 10:06 AM
Thanks Tim. I was aware of it but havent had a chance to upgrade mine yet. I'll get to it this week and release the updated version.
# Posted By Rob Gonda | 10/22/06 6:19 PM
BlogCFC was created by Raymond Camden. This blog is running version 5.1.004.