title: how to show all console.log from node.js in heroku?
body: <p>I have deployed a node.js application to node.js but not able to see the complete console.log statements from my app. I am using:</p>
  
  <pre><code>heroku logs
  </code></pre>
  
  <p>Some of the logging is shown but looks like it is not the complete logs. Is  there a node.js package to send emails from the deployed app? Email works fine from my localmachine btw.</p>
  
  <p>Email code:</p>
  
  <pre><code>console.log('try to send email hold on');
      var nodemailer = require("nodemailer");
      var smtpTransport = nodemailer.createTransport({
          service: "Gmail",
          auth: {
              user: "myemail@gmail.com",
              pass: "mypw"
          }
      });
  
      smtpTransport.sendMail({
          from: "Dikkebil", // sender address
          to: "myemail@gmail.com", // 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);
          }
      });
  </code></pre>