In preparing for my talk this Sunday at CPOSC I have been playing around obviously with various commands, wrapper methods and utility function for jQuery.
This morning I was going through my feeds when I stumbled upon, Blackbird. It’s an open source Javascript logger.
It’s a nice companion to Firebug. I can add it to my page, and then toss some logging statements in my code. With a hit of F2, I can then see the logger.
For example I was testing the grep utility function. Previously I just tossed this in the Fireboug console, which works fine, but this way I can set up a whole bunch of code, and then look at the log as it happens in my page. Leet.
log.info( $.grep([1, 2, 3], function(n){return n < 3}, true) );
I know OpenThought has a logging component to it. Which has been around for a while. I am a little curious why no one had done this before now.
Is there already a way to do logging in Firebug?