Update logger.py
log now accepts boolean values as well as dictionary values
@@ -7,6 +7,8 @@ class LogLevel:
class Logger:
@staticmethod
def log(text, color=None, log={"console":True, "file":False}):
+ if isinstance(log, bool):
+ log = {"console":log, "file":False}
if log["console"]:
if color:
string = color + text + '\033[m'
