process-winston allows the configuration of a process wide winston instance that can be used by all modules. This allows the main module to configure a winston instance and all other modules to share one configuration.
Because modules want to log stuff.
Setup process-winston as soon as possible in your main application like so:
var logger =;
The second argument to process-winston's init method is the default logging information to apply to all loggers. All default options are deep-extended into the options passed when adding a logger. Modules find their loggers like so:
var log = ;
and then they just use the logger.
Now if you want to see lots of logging from the module named modulename you'd change the initialization section in the main application to be this:
var pwinston =logger = pwinston