Created
February 16, 2014 12:03
-
-
Save cemerson/9033177 to your computer and use it in GitHub Desktop.
JavaScript: Basic Log Function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!window.console) window.console = {}; | |
if (!window.console.log) window.console.log = function () { }; | |
function report(msg,ex){ | |
if(!!ex) msg = 'ERROR in [' + msg + ']. Message: ' + ex.Message; | |
window.console.log(msg); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment