TEMPORARILY putting the logger here

This commit is contained in:
Auden Cote-L'Heureux 2023-12-04 14:04:05 -05:00 committed by GitHub
parent 9cf716d431
commit 8dfd0710ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

28
PTL2/Scripts/logger.py Normal file
View File

@ -0,0 +1,28 @@
class Logger():
OKBLUE = '\033[94m'
OKCYAN = '\033[96m'
OKGREEN = '\033[92m'
YELLOW = '\033[93m'
RED = '\033[91m'
ENDC = '\033[0m'
BOLD = '\033[1m'
UNDERLINE = '\033[4m'
@staticmethod
def Error(text, style = ''):
print(Logger.RED + Logger.BOLD + "ERROR: " + Logger.ENDC + Logger.RED + style + text + Logger.ENDC + '\n')
quit()
@staticmethod
def Warning(text, style = ''):
print(Logger.YELLOW + Logger.BOLD + "WARNING: " + Logger.ENDC + Logger.YELLOW + style + text + Logger.ENDC + '\n')
@staticmethod
def Message(text, style = ''):
print(Logger.OKGREEN + style + text + Logger.ENDC + '\n')