Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get console javascript

//What you can do is hook the console.log function so that you store when it logs :
console.stdlog = console.log.bind(console);
console.logs = [];
console.log = function(){
    console.logs.push(Array.from(arguments));
    console.stdlog.apply(console, arguments);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #console #javascript
ADD COMMENT
Topic
Name
7+7 =