Get console history
问题 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. 回答1: Chrome extensions had an API for that, experimental.devtools.console: chrome.experimental.devtools.console.getMessages(function(messages) { }) This API has been removed.