def record_environment(self):
        '''collect a limited set of environment variables based on the list
           under record_envirionment in the configuration file.
        '''

        # whitelist is a newline separated list under record_environment

        envars = self._get_setting(name='whitelist', 
                                   section='record_environment',
                                   user=False)

        if envars is not None:
        
            # User uppercase
         
            envars = [x.upper() for x in envars.split('\n')]

            # Make transparent for the user

            bot.custom(prefix="Environment ",
                       message='|'.join(envars),
                       color="CYAN")

            # Iterate through and collect based on name

            keep = [(k,v) for k,v in os.environ.items() if k.upper() in envars]

            # Ask the user for permission

            if confirm_prompt('Is this list ok to share?'):
                self.data['record_environment'] = keep
collect a limited set of environment variables based on the list
           under record_envirionment in the configuration file.