owenpaul.po at gmail.com writes: > I have a programme to pump out water from a sump and would like to log > to a readable file when the pump operates. what is the easiest way to > acheive this with python 3. Depending on any number of details, the easiest may be to just print. Direct stdout and stderr to files when you run the program.