-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstatuslogger.py
More file actions
39 lines (29 loc) · 1.05 KB
/
statuslogger.py
File metadata and controls
39 lines (29 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
from colorama import init, Fore, Style
class StatusLogger:
@staticmethod
def progress(message: str):
print(f"{Fore.BLUE}", message, f"{Style.RESET_ALL}")
@staticmethod
def title(message: str):
print(f"{Fore.YELLOW}", message, f"{Style.RESET_ALL}")
@staticmethod
def warning(message: str):
print(f"{Fore.LIGHTGREEN_EX}", message, f"{Style.RESET_ALL}")
@staticmethod
def error(message: str):
print(f"{Fore.RED}", message, f"{Style.RESET_ALL}")
@staticmethod
def debug(message: str):
print(f"{Fore.CYAN}", message, f"{Style.RESET_ALL}")
@staticmethod
def success(message: str):
print(f"{Fore.GREEN}", message, f"{Style.RESET_ALL}")
@staticmethod
def info(message: str):
print(f"{Fore.LIGHTWHITE_EX}", message, f"{Style.RESET_ALL}")
@staticmethod
def notice(message: str):
print(f"{Fore.LIGHTYELLOW_EX}", message, f"{Style.RESET_ALL}")
@staticmethod
def message(message: str):
print(f"{Fore.WHITE}", message, f"{Style.RESET_ALL}")