On 2019-03-22 03:25, Sharan Basappa wrote:
I am running a program and even though the program runs all fine, the log file
is missing. I have pasted first few lines of the code.
Any suggestions where I maybe going wrong?
import os
import csv
import logging
import assertion_design as asd
import random
#Create and configure logger
logging.basicConfig(filename="test_1.log", filemode='w', format='%(asctime)s
%(message)s')
import os
import csv
import logging
import assertion_design as asd
import random
#Create and configure logger
logging.basicConfig(filename="test_1.log", filemode='w', format='%(asctime)s
%(message)s')
Are you sure that you know where it's putting the log file? You have a
relative path there, but relative to where? Try it with an absolute path.
Are you sure that it's logging anything? Log a simple message just after
configuring to double-check.
--
https://mail.python.org/mailman/listinfo/python-list