server-log-to-email
v1.1.2
Published
const errorLogsToEmail = require("server-log-to-email");
Downloads
7
Readme
server-log-to-email
const errorLogsToEmail = require("server-log-to-email");
const mailOptions = { user: 'user_email', pass: 'password', to: 'to_user_email_1,to_user_email_2', subject: 'Error Logs', html: `Dear User,
const executeAfterMin = 30; // Note minimum value of executeAfterMin is 1 & maximum value is 43200
global.mailLogger = errorLogsToEmail.logger(executeAfterMin, mailOptions);
mailLogger.error("mail logger is now available for global scope.");