예제 #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)
예제 #2
0
    def __init__(self, name, logfile):
        InformerThread.__init__(self, name)

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