mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-21 04:39:06 +00:00
15 lines
287 B
Python
15 lines
287 B
Python
from loguru import logger
|
|
|
|
|
|
class SingletonLogger:
|
|
__instance = None
|
|
|
|
@staticmethod
|
|
def get_logger():
|
|
if not SingletonLogger.__instance:
|
|
SingletonLogger.__instance = logger
|
|
return SingletonLogger.__instance
|
|
|
|
|
|
logger = SingletonLogger.get_logger()
|