code: def write_logger_id(self, manufacturer, logger_id, extension=None,
                          validate=True):
          
  
          if validate:
              if not patterns.MANUFACTURER_CODE.match(manufacturer):
                  raise ValueError('Invalid manufacturer code')
              if not patterns.LOGGER_ID.match(logger_id):
                  raise ValueError('Invalid logger id')
  
          record = '%s%s' % (manufacturer, logger_id)
          if extension:
              record = record + extension
  
          self.write_record('A', record)
docs: Write the manufacturer and logger id header line::
  
              writer.write_logger_id('XXX', 'ABC', extension='FLIGHT:1')
              # -> AXXXABCFLIGHT:1
  
          Some older loggers have decimal logger ids which can be written like
          this::
  
              writer.write_logger_id('FIL', '13961', validate=False)
              # -> AFIL13961
  
          :param manufacturer: the three-letter-code of the manufacturer
          :param logger_id: the logger id as three-letter-code
          :param extension: anything else that should be appended to this header
              (e.g. ``FLIGHT:1``)
          :param validate: whether to validate the manufacturer and logger_id
              three-letter-codes