I am trying to automate some Windows action using pywinauto, but when I import pywinauto
, logging to the log file stops working.
Before importing - the code is writing the log the file, as in the following example:
import logging
logging.basicConfig(filename='log.txt', filemode='a', level=logging.DEBUG, format="%(message)s",)
logging.info("Test")
.....
After importing - the code is NOT writing the log the file, as in the following example:
import logging
from pywinauto import application
logging.basicConfig(filename='log.txt', filemode='a', level=logging.DEBUG, format="%(message)s",)
logging.info("Test")
.....