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.3.7 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 (8,570 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 1,169,558 points, log4js got 2,157,212 points and winston got 4,064,380 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 21 days ago 4 days ago 5 hours ago
total versions 106 85 45
version average every 20 days every a month every 2 months
maintainers 1 1 6
dependencies 4 11 6
Daily Downloads 38,600 36,641 157,512
Weekly Downloads 460,327 864,044 1,776,000
Monthly Downloads 1,827,040 3,404,359 6,174,357
open issues 186 37 284
open pull requests 30 8 23
stargazers 4,466 2,571 8,570
subscribers 105 119 182
forks 373 475 868
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