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:
- Open the Developer Tools with
F12
orCTRL + SHIFT + I
- Select the Console tab
- Open the context menu (right-click) in the console output area.
- Select
Save as..
from the menu
The content of the exported file looks like this:
Reference:
Chrome console reference
Share "How to save Chrome console.log to file?"
Related snippets:
Tags:
save, console, output, file, chrome Technical term:
Save Chrome console.log to file