Best Practices for Logging in Node.js

This page summarizes the projects mentioned and recommended in the original post on dev.to

SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
  • winston

    A logger for just about everything.

  • Winston — The most popular logging library, with support for multiple transports. This allows you to easily configure your preferred storage location for your logs.

  • pino

    🌲 super fast, all natural json logger

  • PinoPino's biggest attraction is its speed. It claims to be up to five times faster than alternatives, in many cases.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • Bunyan

    a simple and fast JSON logging module for node.js services

  • Bunyan — Another feature-rich logging framework that outputs in JSON by default and provides a CLI tool for viewing your logs.

  • PM2

    Node.js Production Process Manager with a built-in Load Balancer.

  • When you encounter an uncaught exception or unhandled promise rejection, it is always considered good practice to crash the program. Use a process manager like PM2 to automatically restart the process and restore the program to a clean state.

  • winston-daily-rotate-file

    A transport for winston which logs to a rotating file each day.

  • You can prevent your log files from getting too big by employing a log rotation solution that also handles cleaning up old logs. Even with this measure in place, it may be challenging to sift through the logs when you need to troubleshoot an issue (due to the sheer number of log files and entries and the distributed nature of most applications).

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • How to deploy Amplication app to DigitalOcean

    5 projects | dev.to | 6 Oct 2021
  • deploying node.js on digital ocean with pm2

    4 projects | dev.to | 12 Jun 2021
  • Understanding Nginx: From Simple Concepts to Technical Details and Deploying securely with PM2 and Certbot

    1 project | dev.to | 2 May 2024
  • Node.js PM2 Explained

    1 project | dev.to | 24 Apr 2024
  • PM2: Production Process Manager with a Built-In Load Balancer

    2 projects | news.ycombinator.com | 6 Apr 2024