redirecting stdout and stderr for a windows service

Ulrich Eckhardt eckhardt at satorlaser.com
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.

Uli

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




More information about the Python-list mailing list