Esempio n. 1
0
 def runChecks(self, s, firstRun=False):
     for log in self.logs:
         #
         # launch off a new tail client
         #
         thread = TailThread(log)
         thread.start()
         self.threads.append(thread)
Esempio n. 2
0
 def runChecks(self, s, firstRun=False):
     for log in self.logs:
         #
         # launch off a new tail client
         #
         thread = TailThread(log)
         thread.start()
         self.threads.append(thread)
Esempio n. 3
0
    def run(self, debug=False):
        if os.path.exists("/etc/taillogger.yml"):
            f = open('/etc/taillogger.yml')
        elif os.path.exists("./taillogger.yml"):
            f = open('./taillogger.yml')
        else:
            print "Cannot find the config file at /etc/taillogger.yml"
            sys.exit()

        data = yaml.load(f)
        f.close()

        for log, opts in data['logs'].items():
            #
            # launch off a new tail client
            #
            thread = TailThread(log, opts)
            thread.start()
Esempio n. 4
0
    def run(self, debug=False):
        if os.path.exists("/etc/taillogger.yml"):
            f = open('/etc/taillogger.yml')
        elif os.path.exists("./taillogger.yml"):
            f = open('./taillogger.yml')
        else:
            print "Cannot find the config file at /etc/taillogger.yml"
            sys.exit()
        
        data = yaml.load(f)
        f.close()

        for log,opts in data['logs'].items():
            #
            # launch off a new tail client
            #
            thread = TailThread(log, opts)
            thread.start()