Friday, January 26, 2024

[SOLVED] What is the default location of PM2 log files?

Issue

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.


Solution

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



Answered By - varundhariyal
Answer Checked By - Mildred Charles (WPSolving Admin)