To record and save a console log in Google Chrome, follow these quick steps to open Chrome DevTools and export the log file:
1. Open the Console
Use one of the following keyboard shortcuts while on your web page:
- Windows / Linux: Press
Ctrl+Shift+J - Mac: Press
Cmd+Option+J
(Alternatively, click the three dots menu in the top-right corner of Chrome → More Tools → Developer Tools, then click the Console tab).
2. Turn on "Preserve Log" (Highly Recommended)
If the issue you are troubleshooting causes the page to reload or navigate away, Chrome will clear the log by default. To keep the recording across pages:
- Click the Gear icon (Settings) in the top-right corner of the Console panel.
- Check the box for Preserve log.
3. Reproduce the Issue
Perform the steps on the website that cause the error or behavior you are trying to capture. The console will automatically record all background activities, errors, and warnings in real-time.
4. Save the Log File
- Right-click anywhere in the white space of the Console text area.
- Click Save as... from the context menu.
- Choose a folder on your computer, name the file (e.g.,
console-log.txt), and click Save.