Save the console.log in Chrome to a file

eeejay picture eeejay · Oct 2, 2011 · Viewed 172.7k times · Source

Does anyone know of a way to save the console.log output in Chrome to a file? Or how to copy the text out of the console?

Say you are running a few hours of functional tests and you've got thousands of lines of console.log output in Chrome. How do you save it or export it?

Answer

adardesign picture adardesign · Jun 25, 2015

Good news

Chrome dev tools now allows you to save the console output to a file natively

  1. Open the console
  2. Right-click
  3. Select "save as.."

save console to file

Chrome Developer instructions here.