code: def _update_log_record(self, record):
      
      if not hasattr(record, 'hostname'):
          record.hostname = '-'
      if not hasattr(record, 'job_id'):
          record.job_id = self.job_id
docs: Massage a log record before emitting it. Intended to be used by the
      custom log handlers defined in this module.