def __init__(self, dir_lock, *args, **kwargs):
        SecondStageBaseEventClass.__init__(self, dir_lock, *args, **kwargs)

        self.task_function = self.process_event

        # Initialize our eventlist to something.
        self.eventlist = range(EVENTLISTSIZE)

        if self.subsettings['General']['Log Key Count'] is True:
            self.eventlist.append(EVENTLISTSIZE)

        self.logger = logging.getLogger(self.loggername)

        # For brevity.
        self.field_sep = \
            self.subsettings['General']['Log File Field Separator']
    def __init__(self, dir_lock, *args, **kwargs):
        SecondStageBaseEventClass.__init__(self, dir_lock, *args, **kwargs)

        self.task_function = self.process_event

        # Initialize our eventlist to something.
        self.eventlist = range(EVENTLISTSIZE)

        if self.subsettings['General']['Log Key Count'] is True:
            self.eventlist.append(EVENTLISTSIZE)

        self.logger = logging.getLogger(self.loggername)

        # For brevity.
        self.field_sep = \
            self.subsettings['General']['Log File Field Separator']
Exemplo n.º 3
0
 def __init__(self, username, dir_lock, *args, **kwargs):
     SecondStageBaseEventClass.__init__(self, username, dir_lock, *args,
                                        **kwargs)
     self.task_function = self.process_event
     self.logger = logging.getLogger(self.loggername)
     self.sleep_counter = 0
 def __init__(self, username, dir_lock, *args, **kwargs):
     SecondStageBaseEventClass.__init__(self, username, dir_lock, *args, **kwargs)
     self.task_function = self.process_event
     self.logger = logging.getLogger(self.loggername)
     self.sleep_counter = 0
 def cancel(self):
     '''
         Override this to make sure to write any remaining info to log.
     '''
     self.write_to_logfile()
     SecondStageBaseEventClass.cancel(self)
 def cancel(self):
     '''
         Override this to make sure to write any remaining info to log.
     '''
     self.write_to_logfile()
     SecondStageBaseEventClass.cancel(self)