What is the default location of PM2 log files?

JoKeRxbLaCk picture JoKeRxbLaCk · Apr 24, 2019 · Viewed 20.3k times · Source

I'm trying to find out where PM2 saves the log files by default?

I'm working with a Linux Ubuntu 16.04 server and I've installed it globally with npm i pm2 -g.

Answer

varundhariyal picture varundhariyal · Apr 24, 2019

pm2 saves logs to $HOME/.pm2/logs/XXX-err.log by default, where XXX is your pm2 app name