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.4.1 and winston 2.4.0.

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,212 Stars on Github).
bunyan has more versions, more frequent updates and less dependencies.
log4js has been out there for longer (since 6 years ago), it also has less open issues and less 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 901,963 points, log4js got 1,966,019 points and winston got 3,359,759 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 11 days ago 12 days ago a day ago
total versions 106 91 45
version average every 21 days every a month every 2 months
maintainers 1 1 6
dependencies 4 12 6
Daily Downloads 58,376 137,598 226,188
Weekly Downloads 382,608 860,860 1,439,981
Monthly Downloads 1,349,233 2,925,591 5,031,065
open issues 206 62 344
open pull requests 30 15 30
stargazers 4,717 2,813 9,212
subscribers 110 119 193
forks 397 507 912
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