I am sorry to ask, as it is not the first time, but I have not been able to fix it my self by looking at older posts.
Im trying to create and write to a logfile using python. I am creating the file just fine, but there is no input to the file that I am making.
here is my code:
import logginglog_file = '/home/user/Test.log'form = "%(asctime)s - %(levelname)s - %(message)s"logging.basicConfig(filename=log_file, filemode='w', level=logging.DEBUG , format=form)logging.debug = ('DEBUG MESSAGE!')- Did you try changing your logging level to a more higher priority one?Debanik Dawn– Debanik Dawn2017-09-05 08:03:54 +00:00CommentedSep 5, 2017 at 8:03
