PM2 log output limits

Estus Flask picture Estus Flask · Feb 19, 2017 · Viewed 10.2k times · Source

I'm happy with how PM2 formats and outputs the log with

pm2 logs app

But currently it truncates the log to 20 last entries:

[PM2] Tailing last 20 lines for [app] process ...

Is there a way to change the limits and output it in a similar manner, but with 1000 lines, for example?

Answer

Edgar picture Edgar · Feb 19, 2017

Try this

pm2 logs 'YOUR_PROCESS' --lines 1000