I have a useful registration in my node application, which I write on console.log
node server.js >> /var/log/nodeserver.log 2>&1
However, when trying to do the same with pm2 :
pm2 start server.js >> /var/log/pm2server.log 2>&1
only pm2 startup information is displayed in the log file
Is application logging possible with pm2 ? On their page, they discuss logging and display an image with text like "log message from echo.js" , but I see nothing about how to get user information in the pm2 log .
user542319
source share