PrintLog.py 248 B

12345678910111213
  1. import sys,time
  2. DEBUG = True
  3. TIMESTAMP = str(int(time.time()))
  4. LOGFILE = ""
  5. def PrintLog(content):
  6. if DEBUG == True:
  7. outputFile = sys.stdout
  8. elif DEBUG == False:
  9. outputFile = open(LOGFILE, "a+")
  10. print(content)
  11. pass