For a lightweight logging library for JavaScript applications, the strongest matches are pinojs/pino (Pino is a high-performance, structured logging library for Node), winstonjs/winston (Winston is a comprehensive, industry-standard logging library for Node) and trentm/node-bunyan (This is a robust, structured logging framework for Node). log4js-node/log4js-node and nuxt/consola round out the shortlist. Each is ranked by relevance to your query, popularity and recent activity.
We curate open-source GitHub repositories matching “best javascript logging libraries”. Results are ranked by relevance to your query — pick filters below to narrow, or refine with AI.
Pino is a high-performance logging library for Node.js applications designed to minimize overhead and prevent blocking the main event loop. It generates machine-readable logs using newline-delimited JSON, facilitating efficient ingestion and analysis by external monitoring and log aggregation platforms. The library distinguishes itself by offloading log processing and formatting to worker threads, ensuring that heavy logging tasks do not impact application responsiveness. It also provides a decoupled command-line utility that transforms structured production logs into human-readable text, sim
Pino is a high-performance, structured logging library for Node.js that excels at asynchronous, non-blocking log processing and provides robust support for contextual metadata and external log aggregation.
Winston is a versatile logging library for Node.js designed to record system events and metadata. It functions as a multi-transport log manager that routes data to various destinations and a structured log formatter that transforms entries into JSON or plain text. The project is distinguished by its pluggable transport architecture, which decouples the logging interface from delivery mechanisms. This allows for the creation of custom transport extensions and the use of hierarchical logger instances to inherit configurations while attaching persistent metadata to downstream messages. The libr
Winston is a comprehensive, industry-standard logging library for Node.js that provides structured logging, extensive transport support for various destinations, and flexible metadata management, making it a robust choice for application monitoring.
This project is a structured logging framework and library for Node.js applications. It produces machine-readable log records in JSON format with tiered severity levels, ensuring consistent parsing and centralized storage. The system includes a log stream manager for routing records to multiple destinations, such as files and consoles, and a command line interface for filtering, formatting, and visualizing raw JSON log streams. It supports the creation of child loggers that inherit parent configurations and merge additional contextual metadata. The framework covers a broad range of operation
This is a robust, structured logging framework for Node.js that provides essential features like log transport, contextual metadata via child loggers, and JSON-formatted output for efficient monitoring.
This is a logging framework for Node.js based on the log4j architecture. It provides a system for managing hierarchical loggers and severity thresholds, allowing application events to be recorded and categorized across different levels of importance. The framework is distinguished by its cluster-aware logging, which synchronizes and coordinates output across multiple process clusters into a unified stream. It also includes a dedicated log file rotation manager that automatically rolls files by date or size to prevent disk space exhaustion, and a network log transporter for sending data to rem
This is a mature logging framework for Node.js that provides robust features like log rotation, hierarchical loggers, and multi-destination transport, though it is primarily focused on server-side environments rather than being a universal browser-and-node solution.
Consola is a JavaScript logging library and pluggable framework that provides a cross-platform console wrapper. It enables unified output formatting and stream wrapping across both web browser and Node.js terminal environments. The project distinguishes itself through a pluggable reporter system and the ability to intercept global system output, routing standard console and system streams through centralized logging handlers. It provides utilities for creating visually enhanced command line interfaces with support for tags and severity levels. The framework covers wide-ranging observability
Consola is a robust, cross-platform logging library that supports both Node.js and browser environments with a pluggable architecture for custom transports and structured output, making it a strong fit for application monitoring and debugging.
Cabin is the best self-hosted JavaScript and Node.js logging service . Supports Node v18+, Browser Environments, Express , Koa , and Lad Cabin is compatible with Sentry , Airbrake , Papertrail , Loggly , and Bugsnag .
Cabin is a logging service and library that provides structured logging and integration with various transport services for both Node.js and browser environments.