Home / Companies / New Relic / Blog / Post Details
Content Deep Dive

Manually capturing browser logs with the New Relic browser agent

Blog post from New Relic

Post Details
Company
Date Published
Author
Jordan Porter, Lead Software Engineer at New Relic
Word Count
879
Language
English
Hacker News Points
-
Summary

The New Relic browser agent allows users to monitor the performance, errors, and user interactions of web applications by collecting data on page load times, Ajax requests, JavaScript errors, and custom events, which are then analyzed and visualized in New Relic. To enhance debugging, it now offers API methods for capturing raw browser logs manually, which can help identify issues not caught by traditional error tracking and provide detailed insights into user behavior and application processes. Users can manually capture log events with the "log" API for specific cases or use the "wrapLogger" API to automatically capture logs from existing methods, facilitating comprehensive logging across the application. The collected logs can be viewed, sorted, and customized within the application's logging view to assist in troubleshooting and improving customer experience, and the functionality is available from browser agent version 1.261.0 and higher.