A wrote: > Hi All, > I use httplib module. > By h.set_debuglevel(1) I start debugging but the output is written to DOS window. > How can I divert the output to file instead. > Thank you for help. > Ladislav > > > asign a file object to sys.stdout and/or sys.stderr