In a python script I am writing, I am trying to log events using the logging module. I have the following code to configure my logger:
ERROR_FORMAT = \"%(levelna
Maybe try this? It seems the problem is solved after remove all the handlers in my case.
for handler in logging.root.handlers[:]: logging.root.removeHandler(handler) logging.basicConfig(filename='output.log', level=logging.INFO)