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)
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)
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()
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()