aboutsummaryrefslogtreecommitdiffstats
path: root/misc_classes.py
diff options
context:
space:
mode:
Diffstat (limited to 'misc_classes.py')
-rw-r--r--misc_classes.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/misc_classes.py b/misc_classes.py
new file mode 100644
index 0000000..6d310b3
--- /dev/null
+++ b/misc_classes.py
@@ -0,0 +1,12 @@
+import os
+
+class SimpleLogger:
+ def __init__(self):
+ if not os.path.exists("actions.log"):
+ file = open("actions.log", "w")
+ file.close()
+
+ def log(self, message):
+ file = open("actions.log", "a")
+ file.write("%s\n" % message)
+ file.close() \ No newline at end of file