for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
from termcolor import colored
def log(message: str, type: str="WARN"):
if type == "WARN":
print(colored('[WARN]', 'yellow'), message)
elif type == "ERROR":
print(colored('[ERROR] ' + message, 'red'))
elif type == "INFO":
print(colored('[INFO]', 'blue'), message)