aboutsummaryrefslogtreecommitdiffstats
path: root/misc_classes.py
blob: 6d310b321d6586d369cfaf909860c1f611800691 (plain)
1
2
3
4
5
6
7
8
9
10
11
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()