Writing to Console on mac OS X

RGK blank at empty.blank
Tue Mar 31 19:04:06 CEST 2009

I'm on mac os x 10.4.11 running python 2.5.2, and Django 1.0, but this 
is a python question.

When doing django/mod_python stuff, I can write to the Apache error_log 
file with

     sys.stderr.write("SOMETHING I WANT TO KNOW")

which had me wondering if there's not a means for a misc. python program 
to write to the Mac OS X console?   That would be much nicer than having 
to open up the error log and inspect stuff, as then I could see debug 
info stream past on a console window.

(This is console, as in the "console" run from /Applications/Utilities, 
not the bash "Terminal")

Any help or suggestions appreciated. Thx.


More information about the Python-list mailing list