Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ubuntu where to see console.logs

So I am putting my app on a server and I want to see some console logs generated from my nodejs app. Before putting it on the server I saw the output of my console log on my terminal, but where do I find the output for these on Ubuntu? I'm running version 16.04 on Ubuntu

like image 563
Ricky Avatar asked Oct 16 '25 01:10

Ricky


1 Answers

Lifted straight from @SlovyanskiyYehor comment two years ago, but I missed his answer as a comment. Also answered here: Make pm2 log to console.

If you are using pm2 to start your node.js application, you can use:

pm2 logs

or for just a single app running in pm2:

pm2 logs yourAppNameHere
like image 180
Adam Marsh Avatar answered Oct 17 '25 16:10

Adam Marsh