- Instant help with your Developer coding problems

Save Chrome console.log to file

Question:
How to save Chrome console.log to file?
Answer:
1. Open the Developer Tools with F12 or CTRL+SHIFT+I
2. Select the Console tab
3. Open the context menu (right-click) in the console output area and select Save as...
Description:

If you want to analyze Chrome's console log output with a 3rd party tool, you first need to export it to a file. Unfortunately, there is no simple automatic way to do this. The old solutions using command line arguments like --enable-logging don't work reliably.  

A solution is to use manual export. You can do this as follows:

  1. Open the Developer Tools with F12 or CTRL + SHIFT + I
  2. Select the Console tab
  3. Open the context menu (right-click) in the console output area.
  4. Select Save as.. from the menu

Save console.log in Chrome

The content of the exported file looks like this:

Chrome console.log exported content

Share "How to save Chrome console.log to file?"
Tags:
save, console, output, file, chrome
Technical term:
Save Chrome console.log to file