sync...@gmail.com
unread,Sep 19, 2018, 12:12:19 PM9/19/18You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
I'm just trying to follow along with the logging tutorial documentation and I am getting this error:
import logging
logging.basicConfig(format= '%(asctime)s % (message)s', datefmt='%m%d%Y %I:%M:%S %p')
logging.warning('is when this event was logged')
Error:
C:\Users\Malcy\PycharmProjects\Udemy\venv\Scripts\python.exe C:/Users/Malcy/PycharmProjects/logging/logger.py
Traceback (most recent call last):
File "C:\Users\Malcy\AppData\Local\Continuum\anaconda2\Lib\logging\__init__.py", line 861, in emit
msg = self.format(record)
File "C:\Users\Malcy\AppData\Local\Continuum\anaconda2\Lib\logging\__init__.py", line 734, in format
return fmt.format(record)
File "C:\Users\Malcy\AppData\Local\Continuum\anaconda2\Lib\logging\__init__.py", line 469, in format
s = self._fmt % record.__dict__
TypeError: not enough arguments for format string
Logged from file logger.py, line 6