A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/340953.html below:

improvements for the logging package

improvements for the logging packageThomas Heller theller at python.net
Tue Sep 13 04:12:08 EDT 2005
Peter Otten <__peter__ at web.de> writes:

> Thomas Heller wrote:
>
>>> OK, it's not right at the top of the docs, but the example at
>>>
>>> http://docs.python.org/lib/minimal-example.html
>>>
>>> has been there for a while, and if you think it can be made clearer,
>>> please suggest how.
>> 
>> Maybe I'm missing something, but the code from the example doesn't work
>> for me:
>> 
>> 
>>>>> import logging
>>>>>
>>>>> logging.basicConfig(level=logging.DEBUG,
>> ...                     format='%(asctime)s %(levelname)s %(message)s',
>> ...                     filename='/tmp/myapp.log',
>> ...                     filemode='w')
>> Traceback (most recent call last):
>>   File "<stdin>", line 4, in ?
>> TypeError: basicConfig() takes no arguments (4 given)
>>>>>
>
> Are you perhaps trying to teach the 2.3 library a trick from the 2.4 docs?

Yes, it seems so.  Although I would have expected the documentation to
inform me about incompatible changes in the api.

Thomas

More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4