def __init__(self): """ Reads common configuration file and initialize transation codes, observer object """ self.logger = openLog("resources") self.config = ProgramConfig() observerConfig = self.config.getObserverConfig() self.observer = Observer(observerConfig) self.object = Object(self.observer) self.setPoint = SetPoint() self.initResources()
def __init__(self, confDict): self._logger = openLog("database") self._db = self._getDbConnection(confDict)
def __init__(self, name): """ Writes log to name_config.log file Attr: name - logger name """ self._logger = openLog('config_' + name)