Esempio n. 1
0
    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()
Esempio n. 2
0
 def __init__(self, confDict):
     self._logger = openLog("database")
     self._db = self._getDbConnection(confDict)
Esempio n. 3
0
 def __init__(self, name):
     """ Writes log to name_config.log file
     Attr:
         name - logger name
     """
     self._logger = openLog('config_' + name)