Capture Browser Logs

Written by Muhammad Nabeel Rahim

Last updated 17 April 2026

TABLE OF CONTENTS


When testing web applications, you might need to capture logs from your browser. The two most basic types of logs to capture are console logs and network logs (HAR files). These logs are available in your browser's developer tools, the exact location of which depends on your browser:

Console Logs

Capture logs from your browser console:

  1. In your browser's developer tools, navigate to the Console.

  2. Before starting to reproduce the issue, clear the logs.

  3. In the console settings (usually a ⚙️ icon), turn on the option to preserve logs.

  4. When you are done capturing the issue, right click on the logs and save them as a file.

Network Logs

Capture your browser's network logs:

  1. In your browser's developer tools, navigate to Network.

  2. Before starting to reproduce the issue, clear the logs.

  3. In the settings, turn on the option to preserve logs.

  4. When you are done capturing the issue, right click on the logs and save them all as HAR.

 

 

#TestlioBot

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article