Home / Companies / LogRocket / Blog / April 2017

April 2017 Summaries

3 posts from LogRocket

Filter
Month: Year:
Post Summaries Back to Blog
Redux's strength lies in its debuggability, allowing developers to log actions and state during app execution to identify and fix errors. While tools like redux-logger and redux-devtools facilitate debugging during local development, LogRocket extends these capabilities to production environments by providing a comprehensive logging solution. LogRocket's optimized JavaScript SDK and Redux middleware can handle applications with millions of users, recording not just Redux data but also network requests, console logs, JavaScript errors, and DOM video. This extensive context aids in resolving bugs by offering insights similar to Chrome dev-tools. Setting up LogRocket involves installing it via npm, initializing it with an app ID, and integrating it with Redux middleware. LogRocket organizes logs from user sessions into accessible sessions, enhancing error tracking and support workflows. Its advanced features include action and state sanitization to protect sensitive data, and integration with error reporting and support tools like Sentry and Intercom. By architecting apps with logging in mind, developers can maximize the utility of production Redux logging, ensuring that logs provide valuable insights for debugging and improving user experiences.
Apr 19, 2017 1,557 words in the original blog post.
Sentry is a popular tool for tracking errors in JavaScript applications, alerting users to important issues and their frequency in production. However, it sometimes lacks the context needed to understand an error's impact or root cause. LogRocket complements Sentry by providing comprehensive logging for frontend JavaScript apps, capturing console logs, network requests, Redux actions, and even recording HTML/CSS to replay a pixel-perfect video of user interactions. By integrating Sentry with LogRocket, developers can view a LogRocket session for every error reported in Sentry, offering detailed context to resolve bugs more efficiently. The integration allows developers to see session videos, network requests, and console logs, enhancing their ability to diagnose and fix issues quickly. This setup has proven beneficial for companies like Branch Insurance, which has improved its debugging processes through the combined use of Sentry and LogRocket.
Apr 11, 2017 583 words in the original blog post.
Chrome's Code Coverage feature, previously available only in Chrome Canary, has now been integrated into the standard Chrome browser, allowing developers to efficiently identify and optimize unused JavaScript and CSS code in their web applications. By running a web app, users can visualize which lines of code are executed and which remain inactive, with a color-coded bar indicating the proportion of active versus inactive code. This tool is especially beneficial for managing CSS code, which can accumulate over time, and provides a clear overview to help developers streamline their codebases. Code coverage works by recording interactions with a web page, then analyzing and displaying the results, making it easier to pinpoint inefficiencies. Though JavaScript build systems like webpack can handle dead JS code, managing unused CSS is notably more challenging, and this feature presents a practical solution for ongoing code optimization. Developers can download the latest version of Chrome or wait for the feature to be rolled out to regular users, and they are also encouraged to consider using LogRocket for error tracking and further integration with their development stack.
Apr 05, 2017 500 words in the original blog post.