added get_logger function to lib/application.py

This commit is contained in:
iLLiCiTiT 2021-02-15 20:25:24 +01:00
parent 02e0de41bf
commit 2d6ab3a10e

View file

@ -31,6 +31,17 @@ from .python_module_tools import (
)
_logger = None
def get_logger():
"""Global lib.applications logger getter."""
global _logger
if _logger is None:
_logger = PypeLogger.get_logger(__name__)
return _logger
class ApplicationNotFound(Exception):
"""Application was not found in ApplicationManager by name."""