[New-bugs-announce] [issue6314] logging.basicConfig(level='DEBUG', ...
alexl
report at bugs.python.org
Sat Jun 20 06:58:49 CEST 2009
New submission from alexl <alex_lukanin at mail.ru>:
The following code runs w/o exceptions, but log file is empty:
import logging
logging.basicConfig(level='DEBUG', filename='log.txt')
logging.info('Oh hi!')
To avoid such silent error, basicConfig must either throw exception on
invalid level parameter, or accept string values.
----------
components: Library (Lib)
messages: 89536
nosy: alexl
severity: normal
status: open
title: logging.basicConfig(level='DEBUG', ...
type: behavior
versions: Python 3.1
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6314>
_______________________________________
More information about the New-bugs-announce
mailing list