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.basicConfig creates empty file when using handlers
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: vinay.sajip Nosy List: Jovik, python-dev, vinay.sajip
Priority: normal Keywords:

Created on 2012-11-21 12:18 by Jovik, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
logginghandler.py Jovik, 2012-11-21 12:18 Example logging.basicConfig() code with handlers
Messages (2)
msg176052 - (view) Author: Jovik (Jovik) Date: 2012-11-21 12:18
Using logging.basicConfig() with Python 3.2.3 accepts handlers options without any errors. It creates an empty file. I don't think this should be default behaviour, sice it's very missleading (no exception thrown; no warning on standard output or in the file)
msg176363 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012-11-25 15:17
New changeset d7660ccd8470 by Vinay Sajip in branch '3.2':
Closes #16521: Improved error handling for basicConfig(), added tests for same.
http://hg.python.org/cpython/rev/d7660ccd8470

New changeset 4b522a1c9c27 by Vinay Sajip in branch '3.3':
Null merge for fix for #16521.
http://hg.python.org/cpython/rev/4b522a1c9c27
History
Date User Action Args
2022-04-11 14:57:38adminsetgithub: 60725
2012-11-25 15:17:37python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg176363

resolution: fixed
stage: resolved
2012-11-25 14:45:43vinay.sajipsetassignee: vinay.sajip

nosy: + vinay.sajip
2012-11-21 12:18:21Jovikcreate