Get console history

google-chrome-devtools, javascript

Solution

Chrome extensions had an API for that, experimental.devtools.console:

chrome.experimental.devtools.console.getMessages(function(messages) {  })

This API has been removed.

Problem

I'd like to know if there is a way in javascript to retrieve console history. What I mean by console history is what appears in the dev tools console. For instance, I'd like to print in a html page all errors, warnings, info and log that are displayed in my dev tools without opening them. Let me know if I'm not clear.

Original source