Type error: not enough arguments for format string

Cameron Simpson cs at cskk.id.au
Wed Sep 19 18:44:04 EDT 2018


On 19Sep2018 09:12, synch1216 at gmail.com <synch1216 at gmail.com> wrote:
>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')

Probably this: --------------------------^^
The space after the "%" in "% (message)s" is preventing correct recognision of 
the format.
Cheers,
Cameron Simpson <cs at cskk.id.au>


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /