(self, config=None, handlers=[], name=None, configfile=None)
Create a new instance of the Collector class
Create a new instance of the Collector class
Create a new instance of the Collector class
def __init__(self, config=None, handlers=[], name=None, configfile=None):
        """
        Create a new instance of the Collector class
        """
        # Initialize Logger
        self.log = logging.getLogger('diamond')
        # Initialize Members
        if name is None:
            self.name = self.__class__.__name__
        else:
            self.name = name

        self.handlers = handlers
        self.last_values = {}

        self.configfile = None
        self.load_config(configfile, config)
def __init__ ( self , config = None , handlers = [ ] , name = None , configfile = None ) : # Initialize Logger self . log = logging . getLogger ( 'diamond' ) # Initialize Members if name is None : self . name = self . __class__ . __name__ else : self . name = name self . handlers = handlers self . last_values = { } self . configfile = None self . load_config ( configfile , config )