code: def log_all(self, file):
          
          global rflink_log
          if file == None:
              rflink_log = None
          else:
              log.debug('logging to: %s', file)
              rflink_log = open(file, 'a')
docs: Log all data received from RFLink to file.