Elimina i caratteri speciali dal file logger
This commit is contained in:
@@ -47,27 +47,32 @@ class fancyLogger(object):
|
||||
|
||||
def debug(self, msg="Undefined Debug"):
|
||||
print(self.LBLUE, end='')
|
||||
self.LOGGER.debug(msg+self.RST)
|
||||
self.LOGGER.debug(msg)
|
||||
print(self.RST, end='')
|
||||
pass
|
||||
|
||||
def info(self, msg="Undefined Info"):
|
||||
print(self.WHITE, end='')
|
||||
self.LOGGER.info(msg+self.RST)
|
||||
self.LOGGER.info(msg)
|
||||
print(self.RST, end='')
|
||||
pass
|
||||
|
||||
def warn(self, msg="Undefined Warning"):
|
||||
print(self.LYELLOW, end='')
|
||||
self.LOGGER.warning(msg+self.RST)
|
||||
self.LOGGER.warning(msg)
|
||||
print(self.RST, end='')
|
||||
pass
|
||||
|
||||
def error(self, msg="Undefined Error"):
|
||||
print(self.LRED, end='')
|
||||
self.LOGGER.error(msg+self.RST)
|
||||
self.LOGGER.error(msg)
|
||||
print(self.RST, end='')
|
||||
pass
|
||||
|
||||
def critical(self, msg="Undefined Critical"):
|
||||
print(self.RED, end='')
|
||||
self.LOGGER.critical(msg+self.RST)
|
||||
self.LOGGER.critical(msg)
|
||||
print(self.RST, end='')
|
||||
pass
|
||||
|
||||
def testColors(self):
|
||||
|
||||
Reference in New Issue
Block a user