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.

Author vinay.sajip
Recipients BreamoreBoy, Saimadhav.Heblikar, barry, numerodix, pitrou, rhettinger, vinay.sajip
Date 2014-08-17.17:53:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1408298003.95.0.390504868188.issue22195@psf.upfronthosting.co.za>
In-reply-to
Content
> Would it make sense for the logging module to supply something like the LoggerWriter class you wrote? 

Perhaps I'm not making myself clear :-( I've posted the LoggerWriter class (not the initial version, but the later, slightly more functional one) to see if it will meet the needs that Antoine raised and Raymond concurred with. The intention is, if it meets their requirements, to indeed add the LoggerWriter class to the stdlib. If it doesn't meet the requirements, then suggestions and/or patches to improve it are welcome.

However, from a smoke test, sys.stdout = LoggerWriter() doesn't seem to work as expected, but I can't see why at the moment (and currently I'm not able to give it my undivided attention).
History
Date User Action Args
2014-08-17 17:53:24vinay.sajipsetrecipients: + vinay.sajip, barry, rhettinger, pitrou, BreamoreBoy, numerodix, Saimadhav.Heblikar
2014-08-17 17:53:23vinay.sajipsetmessageid: <1408298003.95.0.390504868188.issue22195@psf.upfronthosting.co.za>
2014-08-17 17:53:23vinay.sajiplinkissue22195 messages
2014-08-17 17:53:23vinay.sajipcreate