Actually added logging lol
This commit is contained in:
parent
cf2711a936
commit
f3e888ea4c
1 changed files with 6 additions and 0 deletions
6
logging.py
Normal file
6
logging.py
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
import time
|
||||||
|
|
||||||
|
|
||||||
|
def log(val):
|
||||||
|
with open(log.txt) as logfile:
|
||||||
|
logfile.write("{}: Value was {}".format(time.time(), val))
|
||||||
Loading…
Add table
Add a link
Reference in a new issue