pm2 icon indicating copy to clipboard operation
pm2 copied to clipboard

Aggregate logs from instances in one file

Open pedrofranceschi opened this issue 12 years ago • 2 comments

Hi,

When I start an application with -i 3, three processes start running, but their logs are written to three different files. Is there any way to aggregate those three outputs in one unified file for stdout and stderr, similarly to what happens with pm2 logs?

Thanks,

Pedro

pedrofranceschi avatar Mar 28 '14 07:03 pedrofranceschi

You can now ([email protected]) merge all logs of the same process name to the same output and error file via the option --merge-logs

Cheers

Unitech avatar Apr 14 '14 08:04 Unitech

Great!! Thanks!

pedrofranceschi avatar Apr 14 '14 23:04 pedrofranceschi