winston-logger

Create a winston logger using a simple API.

winston-logger

Create a winston logger using a simple API.

var Logger = require('winston-logger');
 
var logger = Logger({ console: true });
logger.info(..)

Here's an example development option set:

{
  "console" : true
}

And production options:

{
    "file"    : true,
    "console" : false,
    "mail"    : {
      "to": "alerts@company.com",
      "from": "errors@company.com",
      "level": "critical",
      "host": "smtp.sendgrid.net",
      "username": "sendgrid_user",
      "password": "sendgrid_pass",
      "ssl": false
    },
    "papertrail" : {
      "host": "logs.papertrailapp.com",
      "port": 10000,
      "level": "error"
    }
  }
Create a winston logger with provided transports in the options.
WWWWWW||WWWWWW
 W W W||W W W
      ||
    ( OO )__________
     /  |           \
    /o o|    MIT     \
    \___/||_||__||_|| *
         || ||  || ||
        _||_|| _||_||
       (__|__|(__|__|