from datetime import datetime

with open("test.log", "a") as f:
    f.write('Running at ' + datetime.now().isoformat() + '\n')