mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-17 22:14:28 +01:00
refactor(logger): rename the typewriter log function from 'log' to 'typewriter_log'
This commit is contained in:
@@ -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='',
|
||||
|
||||
Reference in New Issue
Block a user