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

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

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

StringGrid issue in Delphi XE8 firemonkey mobile app -