PM2 with python log on TX2

Hi,

I am starting a python script via a pm2 during startups, I name the Log file with the date and time the script starts.

Sometimes the TX2 is hard powered down by turning off the power supply, when turning on the TX2 again, the logger gets logged into the old file, For some reason the python script is not creating a new log file.

Every-time I restart the pm2 or the TX2 a new log file is created.

What could be the possible cause? How would i debug this problem

Regards

Hi,

Sorry we are not familiar with PM2.
Suppose you can get some help in this document for the PM2 log management:
[url]http://pm2.keymetrics.io/docs/usage/log-management/[/url]

Thanks.