Total Complexity | 4 |
Total Lines | 11 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | from termcolor import colored |
||
2 | |||
3 | |||
4 | def log(message: str, type: str="WARN"): |
||
5 | if type == "WARN": |
||
6 | print(colored('[WARN]', 'yellow'), message) |
||
7 | elif type == "ERROR": |
||
8 | print(colored('[ERROR] ' + message, 'red')) |
||
9 | elif type == "INFO": |
||
10 | print(colored('[INFO]', 'blue'), message) |
||
11 |