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.