refactor(logger): rename the typewriter log function from 'log' to 'typewriter_log'

This commit is contained in:
Fabrice Hong
2023-04-12 14:43:32 +02:00
parent 862d44ea39
commit 158c576a87
2 changed files with 28 additions and 28 deletions

View File

@@ -68,7 +68,7 @@ class Logger(metaclass=Singleton):
self.logger.addHandler(error_handler)
self.logger.setLevel(logging.DEBUG)
def log(
def typewriter_log(
self,
title='',
title_color='',
@@ -92,7 +92,7 @@ class Logger(metaclass=Singleton):
title='',
title_color='',
):
self._logs(title, title_color, message, logging.DEBUG)
self._log(title, title_color, message, logging.DEBUG)
def warn(
self,
@@ -100,16 +100,16 @@ class Logger(metaclass=Singleton):
title='',
title_color='',
):
self._logs(title, title_color, message, logging.WARN)
self._log(title, title_color, message, logging.WARN)
def error(
self,
title,
message=''
):
self._logs(title, Fore.RED, message, logging.ERROR)
self._log(title, Fore.RED, message, logging.ERROR)
def _logs(
def _log(
self,
title='',
title_color='',