added app_class and governor
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
from logger import getLogger
|
||||
from config import Config
|
||||
|
||||
|
||||
class AppClass:
|
||||
def __init__(self, _config: Config, testmode: bool = False) -> None:
|
||||
self.testmode = testmode
|
||||
self._config = _config
|
||||
self.log = getLogger(self.__class__.__name__, loglevel=_config.loglevel.upper())
|
||||
self.log.info(f'initializing {self.__class__.__name__}')
|
||||
Reference in New Issue
Block a user