book-email is an email transport for the book logging framework. It will send the log message via email.
installation
npm install book-email
use
book-email is used like all other book middleware. Just add it to your logger object. I recommend you create a file log.js
for your project where you setup the logger however you desire across your entire project.
// some logger you have createdvar log = ; // adds the email logging middleware to the loggerlog
An email will be dispatched to the specified smtp server with the json log entry