Files
cpu_governor_auto_adjust/app_class.py
T

10 lines
363 B
Python

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__}')