Simple Wrapper for Winston Logger


which provides few functionalities which winston does not offer

  • simple logger creation for multiple contexts
  • add transports to all created loggers
  • set root log level for all created loggers


npm install winstoon


var winstoon = require('winstoon');
var logger = winstoon.createLogger('logger-name');'this is a info message', { tag: 'tag-value'})

This needs to done at once on your source and applies to all


winstoon inherits all the transports available at winston

It's very important to switch from the different log levels at different stage of the application. You can choose your root log level as follows

winstoon.setRootLevel('debug'); //only show logs levels higher than info
var logger = require('winstoon')('logger-name');

It is possible to configure a set of common tags for a logger, which always get logged.

var logger = require('winstoon')({context: 'name', host: 'host123'});

log level priorities can be found here

  • fatal
  • error
  • warn
  • info
  • debug
  • log