Is it possible to extend the console
object?
I tried something
like:
Console.prototype.log
= function(msg){
Console.prototype.log.call(msg);
alert(msg);
}
But
this didn't work.
I want to add additional logging to the console object via a
framework like rel="noreferrer">log4javascript and still use the standard console object
(in cases where log4javascript is not available) in my
code.
Thanks in
advance!
No comments:
Post a Comment