Wrapper of winston logger, shared between nodeswork repos.
$ npm i -S nodeswork-logger
How to use
Nodeswork Logger uses object's properties to create new winston instances each time when the logger reference being called. This is because we set label to the actual file path of the caller. So for performance consideration, reference the logger object at the top of the file where it is used.
logger = ;logger;logger;
Create new logger using customized transports
winston = require 'winston'nwLogger = require 'nodeswork-logger'nwLoggeraddLogger 'requestLog'transports:nwLoggertransport winstontransportsConsolecolorize: truerequire 'nodeswork-logger'requestLoginfo "Another one without timestamp."