Add more outputs

This commit is contained in:
Dominik V. Salonen 2015-12-23 23:26:40 +01:00
parent 5023dadc4e
commit e54c7f80bf
1 changed files with 5 additions and 1 deletions

View File

@ -4,8 +4,12 @@ import time
def print_log(source, message):
if source == "Main":
print('\033[92m' + source + ': \033[0m' + message)
elif source == "Notice" or source == "Warning":
elif source == "Notice":
print('\033[93m' + source + ': \033[0m' + message)
elif source == "Warning":
print('\033[91m' + source + ': \033[0m' + message)
elif source == "Web":
print('\033[95m' + source + ': \033[0m' + message)
else:
print('\033[94m' + source + ': \033[0m' + message)