Calibre-Dumper/log_tools.py

13 lines
392 B
Python
Raw Normal View History

from colorama import Style, Fore
def printError(message):
print(f'{Fore.RED}[Error] - {message}{Style.RESET_ALL}')
def printWarning(message):
print(f'{Fore.YELLOW}[Warning] - {message}{Style.RESET_ALL}')
def printInfo(message):
print(f'{Fore.BLUE}[Info] - {message}{Style.RESET_ALL}')
def printSuccess(message):
print(f'{Fore.GREEN}[Success] - {message}{Style.RESET_ALL}')