33

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?

Estus Flask
  • 206,104
  • 70
  • 425
  • 565

2 Answers2

70

Try this

pm2 logs 'YOUR_PROCESS' --lines 1000
Edgar
  • 1,143
  • 10
  • 12
2
pm2 logs 'process_name' --lines 500
elena.kim
  • 930
  • 4
  • 12
  • 22
sainithin
  • 23
  • 5