

def register(self, name, logger):
    if (name in self.__dict__):
        raise EventLoggerError(("Logger '%s' already registered." % name))
    self.__dict__[name] = (logger() if isinstance(logger, type) else logger)

dataset/ETHPy150Open opennode/nodeconductor/nodeconductor/logging/loggers.py BaseLoggerRegistry.register/original