By raurir
Something is causing my node application to crash. It is a twitter bot and does a fair amount of tweet parsing to extract images from the tweet, etc. There are many spots in the code where it could be failing, but very hard to guess.
There are multiple console.log’s which should be outputting to somewhere.
Where can I access node logs to see how my app is failing?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Because each node.js app is a separate entity, there are not logs for the framework itself. By default your errors will go to STDERR and output to STDOUT.
If you’d like to change to log to a file, you’ll need to run your app with a command like this:
node my_app.js > my_app_log.log 2> my_app_err.log
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.