Module Logger Elasticsearch

screenshot of Module Logger Elasticsearch
nestjs

Nestjs Elasticsearch Logger Module

Overview

The NestJS Elasticsearch Logger is a powerful tool designed to facilitate logging in applications built with NestJS, particularly when utilizing Elasticsearch as the storage solution for log data. By integrating seamlessly with the NestJS framework, this logger not only boosts productivity but also enhances the performance of your logging strategy, making it an essential component for developers who rely heavily on detailed logging for debugging and monitoring.

This logger makes it easy to bootstrap logging capabilities into your application, with a versatile setup that can be tailored to meet specific needs. Whether you are looking to track HTTP requests or manage various logging levels, the NestJS Elasticsearch Logger provides an intuitive and efficient way to improve your application's observability.

Features

  • Easy Setup: Quickly integrate the logger into your NestJS application with a simple configuration, ensuring minimal overhead and a smooth onboarding experience.
  • Docker Support: Use the provided docker-compose.yaml file to run an Elasticsearch instance effortlessly, making it convenient for development and testing.
  • Flexible Configuration: Customize logger options to suit your specific needs, with options documented for enhanced clarity on usage.
  • Automated HTTP Logging: Implement the ElasticsearchRequestInterceptor to automatically log incoming HTTP requests, reducing manual logging and ensuring comprehensive traceability.
  • Global and Scoped Usage: Inject the ElasticsearchLoggerService wherever required, whether at the global application level or within individual controllers, providing flexibility in how logging is handled.
  • Kibana Compatibility: Optionally use Kibana for visualizing logs, enabling better analysis and faster identification of issues within log data.
  • Supports Multiple Log Levels: Manage and classify logs effectively with support for different severity levels, helping to streamline the log monitoring process.
nestjs
Nest

A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript.