javascript - Programmatically save chrome's console log -


is there way in javascript or nodejs programmatically in chrome's console can save file or database?

before executing code want log, overwrite console.log 1 throws array (or anywhere else)

example in ecmascript 6:

var logs = []; var oldconsolelog = console.log; console.log = function(...args) {     logs.push(args);     oldconsolelog.call(this, args); } 

Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -