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

javascript - Create websocket without connecting -

how to do line continuation in perl debugger for entering raw multi-line text (EOT)? -

android - Linear layout children not scrolling -