Elimina i caratteri speciali dal file logger

This commit is contained in:
2019-11-02 14:32:44 +01:00
parent dfcbef7ae4
commit 59f11a2f8b

View File

@@ -47,27 +47,32 @@ class fancyLogger(object):
def debug(self, msg="Undefined Debug"): def debug(self, msg="Undefined Debug"):
print(self.LBLUE, end='') print(self.LBLUE, end='')
self.LOGGER.debug(msg+self.RST) self.LOGGER.debug(msg)
print(self.RST, end='')
pass pass
def info(self, msg="Undefined Info"): def info(self, msg="Undefined Info"):
print(self.WHITE, end='') print(self.WHITE, end='')
self.LOGGER.info(msg+self.RST) self.LOGGER.info(msg)
print(self.RST, end='')
pass pass
def warn(self, msg="Undefined Warning"): def warn(self, msg="Undefined Warning"):
print(self.LYELLOW, end='') print(self.LYELLOW, end='')
self.LOGGER.warning(msg+self.RST) self.LOGGER.warning(msg)
print(self.RST, end='')
pass pass
def error(self, msg="Undefined Error"): def error(self, msg="Undefined Error"):
print(self.LRED, end='') print(self.LRED, end='')
self.LOGGER.error(msg+self.RST) self.LOGGER.error(msg)
print(self.RST, end='')
pass pass
def critical(self, msg="Undefined Critical"): def critical(self, msg="Undefined Critical"):
print(self.RED, end='') print(self.RED, end='')
self.LOGGER.critical(msg+self.RST) self.LOGGER.critical(msg)
print(self.RST, end='')
pass pass
def testColors(self): def testColors(self):