An email transport layer for winston
is a transport for Winston that uses NodeMailer to send mails for log events. Contrary to other solution Winston NodeMailer requires you to provide a valid NodeMailer transport. It's in your hand how to configure your desired transport and to inject it into this module.
npm install winston-nodemailer
You can either invoke it via winston.Transports.NodeMailer like this:
var winston = ;;winston;
or with a local variable that Winston NodeMailer exports:
var winston = ;var winstonNodeMailer = ;winston;