how: embed + extend to control my running app?

Chris Angelico rosuav at gmail.com
Wed Jul 24 12:25:47 EDT 2013


On Thu, Jul 25, 2013 at 2:10 AM, David M. Cotter <me at davecotter.com> wrote:
> So: i really want it to go to my own log file (via my Log() function).  now, can i specify "please output to this FILE*" ?, i looked at all the python c headers but found nothing about redirecting the output.


Are you able to simply redirect the OS-level stdout handle, or would
that disrupt your own code? That might be an easier way to log to a
file.

ChrisA



More information about the Python-list mailing list