Is there a cross browser way of implementing console.log functionality, the official supported browser at one of my client is still IE7/IE8.
As development is tested with Firefox for its debugging capabilities, often come across issues on release as some obscure flow still left with un commented console.log statements which doesn't fly with IE
looking for kind of, if anybody does use an elegant way, would love to learn.
function log(msg){
if(IE) alert(msg)
else
console.log(msg)
}