This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: logging handler automatically added starting in 3.2+
Type: behavior Stage: resolved
Components: Documentation Versions: Python 3.2, Python 3.3, Python 3.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: vinay.sajip Nosy List: chris.jerdonek, docs@python, python-dev, vinay.sajip
Priority: normal Keywords: easy

Created on 2013-01-07 11:34 by chris.jerdonek, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (7)
msg179257 - (view) Author: Chris Jerdonek (chris.jerdonek) * (Python committer) Date: 2013-01-07 11:34
Starting in 3.2, the logging module no longer outputs the following message when logging and no handlers are configured for the root logger:

    log = logging.getLogger()
    log.error('test')

'No handlers could be found for logger "root"'

However, I can't seem to find any version-changed about this in the docs.  The code change may be from this commit: c86dc2bd3ae8

Incidentally, I also noticed that three logging paragraphs begin with "PLEASE NOTE:"  Those should probably be changed to ".. note::" etc.
msg179264 - (view) Author: Vinay Sajip (vinay.sajip) * (Python committer) Date: 2013-01-07 14:15
Although there is no versionadded directive, the HOWTO documentation does state that the behaviour relates to Python 3.2 and later, and how to obtain the earlier behaviour.

I will add documentation (including a versionadded) to the reference docs and also update the "PLEASE NOTE:" occurrences to use ".. note::" directives instead.
msg179265 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013-01-07 14:19
New changeset 95a4ff8c540b by Vinay Sajip in branch '3.2':
Issue #16884: updated logging documentation to include lastResort and use 'note' directives where appropriate.
http://hg.python.org/cpython/rev/95a4ff8c540b

New changeset 3b5c4190e256 by Vinay Sajip in branch '3.3':
Issue #16884: Merged logging documentation fixes from 3.2.
http://hg.python.org/cpython/rev/3b5c4190e256

New changeset 9009178e08d9 by Vinay Sajip in branch 'default':
Closes #16884: Merged logging documentation fixes from 3.3.
http://hg.python.org/cpython/rev/9009178e08d9
msg179273 - (view) Author: Chris Jerdonek (chris.jerdonek) * (Python committer) Date: 2013-01-07 17:20
Thanks a lot, Vinay.  By the way, I noticed that the "PLEASE NOTE" reformatting can also be applied to 2.7.
msg179332 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013-01-08 11:20
New changeset 51138680b968 by Vinay Sajip in branch '2.7':
Issue #16884: Updated docs to use 'note' directives.
http://hg.python.org/cpython/rev/51138680b968
msg179333 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013-01-08 11:27
New changeset 50af862d0625 by Vinay Sajip in branch '3.2':
Issue #16884: Updated docs to use 'note' directives in a couple of places missed earlier.
http://hg.python.org/cpython/rev/50af862d0625

New changeset b00c4a095b00 by Vinay Sajip in branch '3.3':
Issue #16884: Merged doc fix from 3.2.
http://hg.python.org/cpython/rev/b00c4a095b00

New changeset 4617b7ac302a by Vinay Sajip in branch 'default':
Issue #16884: Merged doc fix from 3.3.
http://hg.python.org/cpython/rev/4617b7ac302a
msg179335 - (view) Author: Chris Jerdonek (chris.jerdonek) * (Python committer) Date: 2013-01-08 11:32
Thanks!
History
Date User Action Args
2022-04-11 14:57:40adminsetgithub: 61088
2013-01-08 11:32:53chris.jerdoneksetmessages: + msg179335
2013-01-08 11:27:30python-devsetmessages: + msg179333
2013-01-08 11:20:21python-devsetmessages: + msg179332
2013-01-07 17:20:45chris.jerdoneksetmessages: + msg179273
2013-01-07 14:19:28python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg179265

resolution: fixed
stage: resolved
2013-01-07 14:15:46vinay.sajipsetassignee: docs@python -> vinay.sajip
messages: + msg179264
2013-01-07 11:34:53chris.jerdonekcreate