import sys,time DEBUG = True TIMESTAMP = str(int(time.time())) LOGFILE = "" def PrintLog(content): if DEBUG == True: outputFile = sys.stdout elif DEBUG == False: outputFile = open(LOGFILE, "a+") print(content) pass