[issue22195] Make it easy to replace print() calls with logging calls
Martin Matusiak
report at bugs.python.org
Sun Aug 17 16:19:50 CEST 2014
Martin Matusiak added the comment:
Would it make sense for the logging module to supply something like the LoggerWriter class you wrote?
With a section in the documentation that says something like "have you been logging using print() this whole time? No problem, just do sys.stdout = LoggerWriter()"?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22195>
_______________________________________
More information about the Python-bugs-list
mailing list