как показать все console.log из node.js в героку?
Я развернул приложение node.js в node.js, но не смог увидеть полные операторы console.log из моего приложения. Я использую:
heroku logs
Некоторые из журналов показаны, но похоже, что это не полные журналы. Существует ли пакет node.js для отправки электронных писем из развернутого приложения? Электронная почта работает хорошо с моей местной машины между прочим.
Код электронной почты:
console.log('try to send email hold on');
var nodemailer = require("nodemailer");
var smtpTransport = nodemailer.createTransport({
service: "Gmail",
auth: {
user: "[email protected]",
pass: "mypw"
}
});
smtpTransport.sendMail({
from: "Dikkebil", // sender address
to: "[email protected]", // comma separated list of receivers
subject: "Error body", // Subject line
text: 'Error body: ' +error.body+ '\n'+ 'error type:' + error.type +'\n' +'error statuscode:' +error.statusCode +'\n' + 'error args:' + error.arguments[0]
}, function(error, response){
if(error){
console.log(error);
}else{
console.log("Message sent: " + response.message);
}
});