Can I extend the console object?
I tried something like:
Console.prototype.log = function(msg){ Console.prototype.log.call(msg); alert(msg); }
But that did not work. I want to add an additional entry to the console object through a framework such as log4javascript and still use the standard console object (in cases where log4javascript is not available) in my code.
Thanks in advance!
javascript logging extend
prefabSOFT Feb 14 '12 at 13:33 2012-02-14 13:33
source share