flake8 / pylint updates

This commit is contained in:
Gokul Mohanarangan
2023-07-26 11:28:14 +05:30
parent c970fc89dd
commit e512b4dca5
15 changed files with 279 additions and 146 deletions

View File

@@ -1,7 +1,15 @@
"""
Utility file for logging
"""
import loguru
class SingletonLogger:
"""
Use Singleton design pattern to create a logger object and share it
across the entire project
"""
__instance = None
@staticmethod
@@ -15,4 +23,4 @@ class SingletonLogger:
return SingletonLogger.__instance
logger = SingletonLogger.get_logger()
LOGGER = SingletonLogger.get_logger()