CalliopeProjectSim/logging.py

6 lines
130 B
Python

import time
def log(val):
with open(log.txt) as logfile:
logfile.write("{}: Value was {}".format(time.time(), val))