Beispiel #1
0
class LogfileThread(InformerThread):
    def __init__(self, name, logfile):
        InformerThread.__init__(self, name)

        LOG.debug("----> LOGFILE: %s" % logfile)
        self.logger = DiscreetLogSubject(logfile)

    def threadProcess(self):
        self.logger.operate()

    def registerObserver(self, *args, **kwargs):
        self.logger.registerObserver(*args, **kwargs)
Beispiel #2
0
    def __init__(self, name, logfile):
        InformerThread.__init__(self, name)

        LOG.debug("----> LOGFILE: %s" % logfile)
        self.logger = DiscreetLogSubject(logfile)