Try following:
(function() {
var exLog = console.log;
console.log = function(msg) {
exLog.apply(this, arguments);
alert(msg);
}
})()
More Related Contents:
- Chrome/Firefox console.log always appends a line saying ‘undefined’
- How can I make console.log show the current state of an object?
- What happened to console.log in IE8?
- Does IE9 support console.log, and is it a real function?
- Adding console.log to every function automatically
- JS log object why is showing [object Object]
- Logging Clientside JavaScript Errors on Server [closed]
- JavaScript equivalent of jQuery’s extend method
- Chrome JavaScript developer console: Is it possible to call console.log() without a newline?
- Javascript: Extend a Function
- User Activity Tracking using javascript library [closed]
- Remove logging the origin line in Jest
- Synchronous console logging in Chrome
- Stop form refreshing page on submit
- Getting JavaScript object key list
- How to call multiple JavaScript functions in onclick event?
- Map vs Object in JavaScript
- JavaScript: How to find out if the user browser is Chrome?
- Rails 5: how to use $(document).ready() with turbo-links
- Convert string array representation back to an array
- How do I replace the entire HTML node using jQuery
- get size of JSON object
- Generate random integers with probabilities
- How can I open a JSON file in JavaScript without jQuery?
- resolving an array of promises from within a parent promise
- How can I stop the alpha-premultiplication with canvas imageData?
- Difference between screen.availHeight and window.height()
- Using Javascript to override or disable meta refresh tag
- How to make the HTML renders before the alert is triggered?
- Dynamically generated table – using an array to fill in TD values