Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
winston-email

JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.gitignore
.npmignore
README.md
package.json

README.md

winston-email

email transport logging for winston using nodemailer

install

$ npm install winston-email

usage

add an email option to your logger

var winston = require('winston');
require('winston-email');

winston.loggers.add('logger', {
  email: {
    from   : 'xxx',
    to     : 'xxx',
    service: 'Gmail',
    auth   : { user: 'xxx', pass: 'xxx'},
    tags   : ['your app'] //optional tags for the subject
  }
  // other transports
});

logger = winston.loggers.get('logger');
logger.info("info msg", {title:'optional title'});

test

FROM=<youremail> TO=<youremail> USER=<youremail> PASS=<your pwd> node test
Something went wrong with that request. Please try again.