def METHOD_NAME(self, comms_config):
    self.enabled = comms_config.comms_logger_enabled
    if self.enabled:
        self.verbose = comms_config.comms_logger.verbose
        self.debug = comms_config.comms_logger.debug
        self.prof_ops = comms_config.comms_logger.prof_ops
        self.prof_all = comms_config.comms_logger.prof_all