Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PM2 log output limits

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?

like image 669
Estus Flask Avatar asked Feb 19 '17 13:02

Estus Flask


2 Answers

Try this

pm2 logs 'YOUR_PROCESS' --lines 1000
like image 131
Edgar Avatar answered Oct 20 '22 12:10

Edgar


pm2 logs 'process_name' --lines 500
like image 2
sainithin Avatar answered Oct 20 '22 11:10

sainithin