[issue19455] LoggerAdapter class lacks documented "setLevel" method

2013-10-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset db40b69f9c0a by Vinay Sajip in branch '2.7': Issue #19455: Corrected inaccuracies in documentation and corrected some incorrect cross-references. http://hg.python.org/cpython/rev/db40b69f9c0a -- nosy: +python-dev __

[issue19455] LoggerAdapter class lacks documented "setLevel" method

2013-10-30 Thread Eric Hanchrow
Eric Hanchrow added the comment: Thanks! On Wed, Oct 30, 2013 at 5:36 PM, Vinay Sajip wrote: > > Vinay Sajip added the comment: > > Okay, I see. I can't add the methods to the code (as feature additions aren't > allowed in micro releases, and 2.7 is the last 2.x release). So I'll update > the

[issue19455] LoggerAdapter class lacks documented "setLevel" method

2013-10-30 Thread Vinay Sajip
Vinay Sajip added the comment: Okay, I see. I can't add the methods to the code (as feature additions aren't allowed in micro releases, and 2.7 is the last 2.x release). So I'll update the documentation. -- ___ Python tracker

[issue19455] LoggerAdapter class lacks documented "setLevel" method

2013-10-30 Thread Eric Hanchrow
Eric Hanchrow added the comment: I should have been clearer: the problem is that the docs (http://docs.python.org/2/library/logging.html#logging.LoggerAdapter) say In addition to the above, LoggerAdapter supports the following methods of Logger, i.e. debug(), info(), warning(), error(), excep

[issue19455] LoggerAdapter class lacks documented "setLevel" method

2013-10-30 Thread Vinay Sajip
Vinay Sajip added the comment: The adapter provides only the logging methods such as debug(), info() etc., but not methods to configure the logger (such as setLevel). Just use adapter.logger.setLevel(logging.WARNING) -- nosy: +vinay.sajip resolution: -> invalid status: open -> closed

[issue19455] LoggerAdapter class lacks documented "setLevel" method

2013-10-30 Thread Eric Hanchrow
New submission from Eric Hanchrow: Put the following into a file named "repro.py", then type "python repro.py" at your shell. You'll see ``AttributeError: 'CustomAdapter' object has no attribute 'setLevel'`` import logging logging.basicConfig () class CustomAdapter(logging.LoggerAdapter):

[issue19455] LoggerAdapter class lacks documented "setLevel" method

2013-10-30 Thread Eric Hanchrow
Changes by Eric Hanchrow : -- components: Library (Lib) nosy: Eric.Hanchrow priority: normal severity: normal status: open title: LoggerAdapter class lacks documented "setLevel" method type: behavior versions: Python 2.7 ___ Python tracker