On 6/2/2013 2:18 PM, Rick Johnson wrote:
On Sunday, June 2, 2013 12:49:02 PM UTC-5, Dan Sommers wrote:
On Mon, 03 Jun 2013 03:20:52 +1000, Chris Angelico wrote:
On Mon, Jun 3, 2013 at 3:04 AM, Rick Johnson
[...]
Or use the logging module.  It's easy to get going quickly
(just call logging.basicConfig at startup time), and with
a little care and feeding, you can control the output in
more ways than can fit into the margin. Oh, yeah, I'm sure
it introduces some overhead.  So does everything else.
I hate log files, at least during development or testing. I prefer to debug on 
the command line or using my IDE. Log files are for release time, not 
development.

Rick, you should give the logging module a try. The default configuration from basicConfig is that the messages all go to stderr, so no log files to deal with. And it's configurable in the ways you want, plus a lot more.

--Ned.


--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to