7 Best Node.js Logging Libraries for Your Next Projects

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 is a popular logging library. It is designed to be simple and enables universal logging with support for multiple transports. Winston defines itself as “A logger for just about everything”.

  • Bunyan

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

  • Bunyan is also another popular and fast JSON Node.js logging library. Just like Winston, it also supports logging into multiple transport options. Other features include a neat-printing CLI for logs, a log filter, serializers for rendering objects, snooping system, and the ability to support multiple runtime environments such as NW.js and WebPack. Bunyan enforces the JSON format for logs.

  • 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
  • pino

    🌲 super fast, all natural json logger

  • Pino is also a popular Node.js logging library alternative for developers. There are claims that it is 5x faster than other Node.js logging libraries besides providing standard features such as the ability to choose a storage medium, log levels, and formatting capabilities. Pino is also highly extensible, flexible, and easy to integrate with Node.js frameworks such as Express, Fastify, and Restify. The library is a low-overhead Node.js logging library and supports asynchronous logging despite being fast. Pino also gives you the ability to create child loggers.

  • loglevel

    :ledger: Minimal lightweight logging for JavaScript, adding reliable log level methods to wrap any available console.log methods

  • A relatively popular, simple, “minimal and lightweight” Node.js logging library that works both in the browser and for Node.js. According to its documentation, the LogLevel Node.js logging libraries seek to replace the console methods with more features such as the “ability to disable error logging in production and filter logs by their severity”. LogLevel is a Node.js logging library that has no dependencies and can continue logging even in browsers that don’t have support for the console object. Like other Node.js logging libraries, LogLevel is also extensible and offers log redirection capabilities, formatting, and filtering. For developers that develop in TypeScript, LogLevel already has included type definitions making it even more convenient to use.

  • tracer for node.js

    A powerful and customizable logging library for node.js

  • Tracer calls itself the customizable and powerful logging library for Nodejs. With Tracer, you can print simple logs, colored logs, and even set output levels. You can customize it by printing a timestamp, file name, line number, and even the call stack! The list is huge!

  • signale

    Highly configurable logging utility

  • Signale consists of 19 loggers for Javascript applications. It supports TypeScript and scoped logging. It consists of timers that help log the timestamp, data, and filename. Apart from the 19 loggers like await, complete, fatal, fav, info, etc., one can create custom logs.

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 continuously process Docker container logs in Node.js?

    2 projects | /r/node | 9 Jun 2023
  • Comparing top Node.js frameworks for frontend developers

    2 projects | dev.to | 1 Nov 2021
  • Better logs for ExpressJS using Winston and Morgan with Typescript

    4 projects | dev.to | 3 Mar 2021
  • Errsole: The First Node.js Logger with a Built-In Dashboard

    3 projects | dev.to | 9 May 2024
  • VS Code app logs browser UI

    1 project | dev.to | 24 Mar 2024