Aug-28-2018, 07:42 AM
Hi,
In my python script have redirected logs to a file by importing "logging" module.
And the script is running as a service in Linux environment by creating a service file /etc/systemd/system
Generally the script is working fine, but intermittently logs are not redirected properly and a service restart requires to fix this issue.
Could you please help me some way to spot the issue or is there any way to trace the logs based on service?
Or is there any other alternate suggestion to achieve this?
Thanks & Regards,
Nachu
In my python script have redirected logs to a file by importing "logging" module.
And the script is running as a service in Linux environment by creating a service file /etc/systemd/system
Generally the script is working fine, but intermittently logs are not redirected properly and a service restart requires to fix this issue.
Could you please help me some way to spot the issue or is there any way to trace the logs based on service?
Or is there any other alternate suggestion to achieve this?
Thanks & Regards,
Nachu