logging = logging.getLogger(__name__)
Paul Rudin
paul.nospam at rudin.co.uk
Tue Jun 15 12:01:33 EDT 2010
Peter Otten <__peter__ at web.de> writes:
> genkuro wrote:
>
>> Newbie here. I may be missing something obvious, in which case,
>> please feel free to berate and laugh at me.
>>
>> Here's a dubious line of code:
>> logging = logging.getLogger(__name__)
>
> Dubious indeed. As a workaround you can import the module again, preferably
> under another name:
It's better just to use another variable name - e.g. "logger", Shirley?
More information about the Python-list
mailing list