I am trying to output a log file while I run my process in QGIS python. The script I used did not output any log file.
I tried the script below
import logging
formatter = '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
logfilename=r'c:\temp\example.log'
logging.basicConfig(filename=logfilename, level=logging.INFO, format=formatter)
logging.info("This logging info text goes into the file")
logging.debug("This logging debug text goes into the file as well")
Expecting a log file to be save in c:\temp\