Comparing bunyan vs. log4js vs. winston

How are they different?

Here we compare between bunyan, log4js and winston. In this comparison we will focus on the latest versions of those packages. The current versions are bunyan 1.8.12, log4js 2.5.3 and winston 2.4.1.

bunyan, a JSON logging library for node.js services. It was authored by Trent Mick on Feb, 2012.
log4js, Port of Log4js to work with node. It was authored by Gareth Jones on Jan, 2011.
winston, A multi-transport async logging library for Node.js. It was authored by Charlie Robbins on Jan, 2011.

When comparing those packages you notice that winston is the more popular package today (9,740 Stars on Github).
bunyan has more versions, more frequent updates and fewer dependencies.
log4js has been out there for longer (since 6 years ago), it also has fewer open issues and fewer open pull requests.
winston has a bigger community of maintainers, more daily downloads, more weekly downloads, more monthly downloads, more stars on Github, more followers on Github and more forks.

In our review bunyan got 1,173,921 points, log4js got 2,899,495 points and winston got 4,866,140 points. The points are a summary of how big the community is and how well the package is maintained.

Lets dive deeper and have a look at some more details on those packages.

Going into more detail





description a JSON logging library for node.js services Port of Log4js to work with node. A multi-transport async logging library for Node.js
keywords log, logging, log4j, json, bunyan logging, log, log4j, node winston, logging, sysadmin, tools
author Trent Mick Gareth Jones Charlie Robbins
Related / similar packages
morgan, debug, scribe morgan, debug, scribe morgan, debug, scribe
licenses MIT Apache-2.0 MIT
created 6 years ago (Feb, 2012) 7 years ago (Jan, 2011) 7 years ago (Jan, 2011)
modified 4 days ago 18 days ago 10 hours ago
total versions 106 95 48
version average every 21 days every a month every 2 months
maintainers 1 1 6
dependencies 4 13 6
Daily Downloads 69,878 183,361 307,385
Weekly Downloads 438,434 1,078,838 1,793,887
Monthly Downloads 1,825,416 4,528,362 7,607,547
open issues 214 60 329
open pull requests 30 12 17
stargazers 4,903 2,991 9,740
subscribers 110 123 198
forks 414 525 952
Overall points






CLI Shortcuts
install npm i -S bunyan npm i -S log4js npm i -S winston
remove npm r -S bunyan npm r -S log4js npm r -S winston

Share this with other developers