redirecting stdout and stderr for a windows service

Ulrich Eckhardt eckhardt at
Mon Sep 6 17:17:46 CEST 2010

Ian Hobson wrote:
>      sys.stdout = sys.stderr = open("d:\logfile.txt", "a")

"\l" is probably not what you want. Consider using "\\l" or r"\l" instead.


Sator Laser GmbH
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932

More information about the Python-list mailing list