"Gillou" <nospam at bigfoot.com> writes: > Any clue to have this done as transparently as possible ? I recommend to replace sys.stdout, and use isatty to determine whether it goes to the console or to a file. HTH, Martin