NestJS Rollbar package allows you to extend standard Logger to send errors directly to Rollbar
The Rollbar Module for NestJS is an innovative solution that enhances the standard logging capabilities of your NestJS applications. This module integrates seamlessly with Rollbar, allowing developers to easily send error logs directly to their Rollbar account. With straightforward installation and usage, it's designed for developers looking to streamline their error tracking and improve application reliability.
By implementing the RollbarModule, you can effortlessly capture and report errors in your application, benefiting from the powerful features of Rollbar’s error monitoring. This module not only simplifies the logging process but also provides critical insights into application performance and issues.
Easy Installation: Simply obtain your Rollbar Token and install the nestjs-rollbar package, making integration a breeze.
Seamless Integration: Register the Rollbar module in your root app module using the forRoot method, or opt for forRootAsync for more advanced configurations.
Injectable Logger: Use the RollbarLogger in any service or controller by injecting it into the constructor, providing direct access to logging functions.
Simple Error Logging: Log errors effortlessly by calling the error() method, passing in the error object and the method name for better context.
Automatic Error Handling: Utilize the RollbarHandler decorator to automatically catch and log errors in your controller or service methods without explicit error handling.
Customizable Error Names: Modify the error name logged by passing a custom name to the RollbarHandler decorator, ensuring clarity in logs.
Re-throwing Errors: Get the flexibility to rethrow errors to other decorators, maintaining control over error flow in your application.
A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript.
TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.