Logging with 2 process in application

gayatri funde fundegayatri at gmail.com
Mon Feb 22 00:05:16 EST 2021


Hello,

Greetings!! Have a good day!

This is regarding logging issue i am facing in my application. My requirement is to create log on daily basis while my application is running, So to do this i am creating new log file at midnight by comparing the day it starts and enter to new day with the while loop continuously checking on date.

In my application i have 2 processes, So what my observation is on the day of start of application both process are able to log into the file, but as new day starts new file getting created and only main process log are getting written into new file, and other process is still writing to old day log.

So could you please help me to understand this issue and it will be great to know solution if you can help me with this.

Thanks in advance!



More information about the Python-list mailing list