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
Post a Comment