So, when I copy paste the following x times to the python prompt, it add the log x times to the end of the designated file.
How can I change the code so that each ti
The mode is specified as part of logging.basicConfig and is passed through using filemode.
logging.basicConfig( level = logging.DEBUG, format = '%(asctime)s %(levelname)s %(message)s', filename = 'oneDayFileLoader.log, filemode = 'w' )
https://docs.python.org/3/library/logging.html#simple-examples