Delete utils/Logger.py
Browse files- utils/Logger.py +0 -24
utils/Logger.py
DELETED
|
@@ -1,24 +0,0 @@
|
|
| 1 |
-
import logging
|
| 2 |
-
|
| 3 |
-
logging.basicConfig(level=logging.INFO, format='%(asctime)s | %(levelname)s | %(message)s')
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
class Logger:
|
| 7 |
-
@staticmethod
|
| 8 |
-
def info(message):
|
| 9 |
-
logging.info(str(message))
|
| 10 |
-
|
| 11 |
-
@staticmethod
|
| 12 |
-
def warning(message):
|
| 13 |
-
logging.warning("\033[0;33m" + str(message) + "\033[0m")
|
| 14 |
-
|
| 15 |
-
@staticmethod
|
| 16 |
-
def error(message):
|
| 17 |
-
logging.error("\033[0;31m" + "-" * 50 + '\n| ' + str(message) + "\033[0m" + "\n" + "└" + "-" * 80)
|
| 18 |
-
|
| 19 |
-
@staticmethod
|
| 20 |
-
def debug(message):
|
| 21 |
-
logging.debug("\033[0;37m" + str(message) + "\033[0m")
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
logger = Logger()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|