[docs] [issue8890] Module logging has dangerous examples

anatoly techtonik report at bugs.python.org
Thu Jun 3 23:51:01 CEST 2010


anatoly techtonik <techtonik at gmail.com> added the comment:

import logging
- LOG_FILENAME = '/tmp/logging_example.out'
+ LOG_FILENAME = 'example.log'
  logging.basicConfig(filename=LOG_FILENAME,level=logging.DEBUG)
  logging.debug('This message should go to the log file')

----------
nosy: +techtonik

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8890>
_______________________________________


More information about the docs mailing list