I have several custom Javascript objects and want to do some debugging via the Firebug console inside of them. However, if I try to use console.log(), I get an error about console not being defined. I tried referencing console as window.console and it made no difference. When I run a check to see if console is defined, it returns false:
if(window.console && window.console.firebug)
So, my question is, how can I reference the Firebug console inside of my custom objects so that I can do my debugging?