diff --git a/src/utils/custom_logger.py b/src/utils/custom_logger.py index 9a25dca..65d5b39 100644 --- a/src/utils/custom_logger.py +++ b/src/utils/custom_logger.py @@ -6,9 +6,8 @@ from .singleton import Singleton class CustomLogger(Singleton): """ - Singleton logger class that initializes a logger with a specified name and log file. - It provides a method to log entry and exit of functions. - + Singleton logger class that initializes a logger with a specified name + and log file.It provides a method to log entry and exit of functions. """ def __init__(self, name="main", log_file=None, level=logging.INFO): @@ -22,7 +21,8 @@ class CustomLogger(Singleton): self.logger.propagate = False formatter = logging.Formatter( - "%(asctime)s %(levelname)s [%(filename)s:%(lineno)3d]: %(message)s" + "%(asctime)s %(levelname)s " + "[%(filename)s:%(lineno)3d]: %(message)s" ) # Console handler